CentOS下载地址:(附件中包含bt种子文件CentOS-6.3..........rar)
http://mirror.lug.udel.edu/pub/centos/6.3/isos/
VMware8配置见附件
centos6.2安装jdk1.6.0_30:
1,卸载原来的openJDK:yum -y remove java
2,在oracle官网下载jdk-6u30-linux-i586-rpm.bin
3,复制jdk-6u30-linux-i586-rpm.bin到/usr/目录下
4,cd /usr,然后更改文件权限:chmod +x jdk-6u30-linux-i586-rpm.bin
5,./jdk-6u30-linux-i586-rpm.bin
6,vi /etc/profile,在文件最后面输入:
7,更新配置文件:source /etc/profile
8,查看java版本:java -version 或者javac -version
centos6.2安装tomcat6和mysql5:
1,下载apache-tomcat-6.0.35.tar.gz
2,apache-tomcat-6.0.35.tar.gz
3,su - root,mv apache-tomcat-6.0.35.tar.gz /usr/share
4,cd /usr/share,tar zxvf apache-tomcat-6.0.35.tar.gz
5,到tomcat的bin目录测试下启动:./startup.sh
6,把tomcat安装成系统服务:
cd /etc/init.d
vi tomcat
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