@rg070836rg
2017-06-10T20:52:42.000000Z
字数 641
阅读 1413
配置
①jdk官方下载:jdk-8u101-linux-i586.tar.gz
②新建/usr/local/java文件夹,用winscp拷贝进去
③解压 sudo tar -zxvf jdk-8u101-linux-i586.tar.gz
④配置环境变量:sudo vim ~/.bashrc
export JAVA_HOME=/usr/local/java/jdk1.8.0_101
export JAVA=/usr/local/java/jdk1.8.0_101
export JRE_HOME=/usr/local/java/jdk1.8.0_101/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib
export PATH=$JAVA_HOME/bin:/sbin:$PATH
⑤source ~/.bashrc 更新
⑥java -version 查看是否成功
①sudo apt-get install mysql-server
②启动 /etc/init.d/mysql start service mysql restart
①sudo apt-get install tomcat7
②sudo apt-get install tomcat7-docs tomcat7-admin tomcat7-examples
③网站目录 /var/lib/tomcat7/webapps/ROOT/index.html