- 具体步骤
- 在 IDEA 里打包 war 包并获得其路径
- 将项目部署到服务器:
scp (war包路径)
(需输入密码并且等待完成,举例见4) - 在terminal中进入服务器:
ssh root@115.159.45.78(公网 ip)
- 清除日志(可选)
cd /var/tomcat/tomcat-7/logs/
ls
rm catalina.out
- 重启tomcat:
- 先在
cd tomcat/tomcat-7/bin
目录下关闭tomcat:./shutdown.sh
- 再在
cd tomcat/tomcat-7/bin
目录下启动tomcat:./startup.sh
- 先在
-
服务器信息(不同的服务器不同)
+----------------------------------------------------------------------
| YJCOM [ EASY CLOUD EASY WEBSITE]" >> $README
+----------------------------------------------------------------------
| Copyright (c) 2015 http://yjcom.com All rights reserved.
+----------------------------------------------------------------------
nginx /usr/local/nginx
tomcat6 /var/tomcat/tomcat-6
tomcat7 /var/tomcat/tomcat-7
tomcat8 /var/tomcat/tomcat-8
mysql5.6 /var/lib/mysqlmysql: service mysql (start|stop|restart)
vsftpd: service vsftpfd (start|stop|restart)
nginx: service nginx (start|stop|restart)www ftp directory /yjdata/www/www/
change tomcat version for the default site
/yjdata/www/www/change_tomcat_version.sh 6|7|8change jdk version for the default site
/yjdata/www/www/change_jdk_version.sh 1.6|1.7|1.8
"README.txt" 23L, 813C 15,1 全部 -
默认密码
MySQL root password: 3IlVUPTZezx3
MySQL database name: 0aGlcUME
MySQL user: 0aGlcUME
MySQL password: foQN2fkDDlws
FTP account: www
FTP password: 5QdfIwPtLSaH -
接1举例
scp /Users/Ting/Documents/Projects/gjlg/zhaosheng/branches/branch-20161024-week3/target/jeesite.war root@115.159.45.78:/var/tomcat/tomcat-7/webapps
-
重启服务器命令
- shutdown -r now
网友评论