使用腾讯云服务器CentOS搭建JavaWeb环境

yum list java*

yum install java-1.7.0-openjdk* -y

java -version

 

cd /usr/local

wget https://mc.qcloudimg.com/static/archive/fa66329388f85c08e8d6c12ceb8b2ca3/apache-tomcat-7.0.77.tar.gz

tar -zxf apache-tomcat-7.0.77.tar.gz

mv apache-tomcat-7.0.77 /usr/local/tomcat7

cd /usr/local/tomcat7/bin

chmod 777 *.sh

./startup.sh

posted @ 2019-03-14 11:24  苍鼠  阅读(203)  评论(0编辑  收藏  举报