centeros安装jdk, mysql, tomcat

阅读更多

酷

1.yum install lrzsz

2.yum install java-1.7.0-openjdk* -y

3.which java

4.ls -lrt /usr/bin/java

5.ls -lrt /etc/alternatives/java

6.vim /etc/profile

7.键入如下内容并保存

export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.161-2.6.12.0.el7_4.x86_64

export JRE_HOME=$JAVA_HOME/jre

export CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH

export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH

8.source /etc/profile

9. wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

10.rpm -ivh mysql-community-release-el7-5.noarch.rpm

11.yum install mysql-server -y

12.yum install tomcat -y

13.rpm -ql tomcat

14.vim /etc/tomcat/server.xml

15.service mysqld start

16.service tomcat start

-----------------------------------------------------------------------

上面第12步安装的tomcat发现有问题,更正为

12-fix:wget http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-7/v7.0.84/bin/apache-tomcat-7.0.84.tar.gz

13-fix: mv /usr/local/apache-tomcat-7.0.84.tar.gz /usr/local/

14-fix: cd /usr/local

15-fix: tar -zxvf ./apache-tomcat-7.0.84.tar.gz -C /usr/local

16fix: ./apache-tomcat-7.0.84/bin/startup.sh

 

 

 

你可能感兴趣的:(centeros安装jdk, mysql, tomcat)