centos6.3的三种安装方法(U盘,硬盘,光盘)

发布时间:2020-03-18编辑:脚本学堂
>>windows7利用EasyBCD安装centos6.3双系统 U盘安装步骤:(推荐用这种方法)

6,把tomcat安装成系统服务:

cd /etc/init.d
vi tomcat

Bash代码

#!/bin/bash
# description: Tomcat Start Stop Restart
# processname: tomcat
# chkconfig: 234 20 80

JAVA_HOME=/usr/java/jdk1.6.0_30

export JAVA_HOME

PATH=$JAVA_HOME/bin:$PATH

export PATH

CATALINA_HOME=/usr/share/apache-tomcat-6.0.35

case $1 in

start)

sh $CATALINA_HOME/bin/startup.sh

;;

stop)

sh $CATALINA_HOME/bin/shutdown.sh

;;

restart)

sh $CATALINA_HOME/bin/shutdown.sh

sh $CATALINA_HOME/bin/startup.sh

;;

esac

exit 0

chmod 755 tomcat

chkconfig –add tomcat

chkconfig –level 2345 tomcat on

chkconfig –list tomcat

7,测试下:

service tomcat start

service tomcat restart

service tomcat stop

附:安装mysql5的步骤:

# sudo yum -y install mysql-server

# sudo /etc/rc.d/init.d/mysqld start

# sudo chkconfig mysqld on

# mysql -u root

mysql>

select user,host,password from mysql.user;

mysql>

set password for root@localhost=password(‘password’);

mysql>

set password for root@’127.0.0.1′=password(‘password’);

mysql>

set password for root@’www.server.world’=password(‘password’);

mysql>

delete from mysql.user where user=”;

mysql>

select user,host,password from mysql.user;

mysql>

exit

# mysql -u root -p

输入密码进入即可。

附:安装phpmyadmin

# sudo yum install phpMyAdmin

# su – root

# cd /usr/share/phpmyadmin/

# cp config.sample.inc.php config.inc.php

# vim config.inc.php

// $cfg['Servers'][$i]['controluser'] = ‘pma’;

// $cfg['Servers'][$i]['controlpass'] = ‘pmapass’;

将“//”注释号删除,同时输入您在 MySQL 中配置的用户名和密码

>>centos6.3手动安装Thunderbird 10

1,先下载thunderbird-10.0.1.tar.bz2文件

2,解压缩到/usr/local目录下:sudo tar -jxvf thunderbird-10.0.1.tar.bz2 -C /usr/local

3,将thunderbird加入执行路径:sudo ln -s /usr/local/thunderbird/thunderbird /usr/bin/

4,添加菜单:cd /usr/share/applications/

sudo vim thunderbird.desktop

输入如下内容:
[Desktop Entry]
Name=Thunderbird 10.0
Exec=/usr/local/thunderbird/thunderbird
Icon=/usr/local/thunderbird/chrome/icons/default/default48.png
Terminal=false
Type=Application
Categories=Application;Network;
Encoding=UTF-8
Comment=This is Thunderbird 10
X-Desktop-File-Install-Version=0.3