以下方法安装全部错误!!!!
1.
tomcat6
yum -y install tomcat6 tomcat6-webapps tomcat6-admin-webapps tomcat6-docs-webapp tomcat6-javadoc
2. 安装JDK
yum list java*
yum install java-1.7.0-openjdk* -y
以上方法安装全部错误!!!!
一、安装JDK
sun官方下载jdk版本 留意jdk6--->tomcat6 jdk7---->tomcat7 ...一次类推
#chmod +755 jdk-6u1-linux-i586.bin
#./jdk-6u1-linux-i586.bin
设置情况
在 /etc/profile中插手如下内容(可以利用vi举办编辑profile):
JAVA_HOME=/usr/java/jdk1.6.0_01
CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib
PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
export PATH CLASSPATH JAVA_HOME
执行
#source /etc/profile
二、安装Tomcat
1)下载apache-tomcat-6.0.10.tar.gz
2)#tar -zxvf apache-tomcat-6.0.10.tar.gz ; //解压
3)拷贝apache-tomcat-6.0.10到/usr/local/下并重定名为tomcat
[root@linux bin]#cp -R apache-tomcat-6.0.10 /usr/local/tomcat ;
4)启动tomcat
[root@linux bin]#/usr/local/tomcat/bin/startup.sh
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/local/jdk/jdk1.6.0_17
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar
yum list mysql*
yum install mysql-server* -y
#conf修改
vi /etc/my.cnf
[mysqld]
# datadir=/var/lib/mysql
datadir=/usr/local/renfufei/mysql_data
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
default-character-set=utf8
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
[mysql]
default-character-set=utf8