1、jdk和tomcat:將二者的包解壓(tar xvf /opt/soft/jdk1.8.0_131 -C /opt/app/)到/opt/app/文件下,注意:jdk和tomcat不用安裝,他倆走的是環境變量,最後的配置文件vi /etc/profile的最下面添加信息爲:html
JAVA_HOME=/opt/app/jdk1.8.0_131
CLASSPATH=$JAVA_HOME/lib/
CATALINA_HOME=/opt/app/apache-tomcat-7.0.68
PATH=$PATH:$JAVA_HOME/bin:$CATALINA_HOME/bin
export PATH JAVA_HOME CLASSPATH CATALINA_HOMEjava
而後從新加載:source /etc/profilemysql
這就好了,java -version 查看jdk版本sql
在tomcat的bin下啓動tomcat:./startup.sh 查看網站爲:192.168.10.101:8080/ 對外開放端口vim /etc/sysconfig/iptables:-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPTapache
2、而後是MySQL,注意mysql是個軟件,需安裝:參考下方連接vim
jdk參照:https://www.cnblogs.com/fengweiweicoder/p/10777032.htmltomcat
tomcat參照:https://blog.csdn.net/fukai8350/article/details/80467224app
mysql參照:https://www.cnblogs.com/shuangfeike/p/11393863.htmltcp