如何将项目部署在linux服务器?
用到工具:SecureCRT、WinSCP
1.首先用maven将项目打成war包,eclipse:选中项目右键-->runas-->mavenpackage
2.copy空的Tomcat项目到linux服务器中,改端口
3.将打包成的war包copy到Tomcat中webapps下
4.在bin目录下启动startup.sh
5.操作命令
进入bin目录:[[email protected]]#cd/opt/neco-tomcat-6.0.35-8094/bin/
对文件夹赋权限:[root@localhostbin]#chmod777-R/opt/neco-tomcat-6.0.35-8094/
启动tomcat服务:[root@localhostbin]#./startup.sh
关闭服务:[root@localhostbin]#./shutdown.sh
/opt/neco-tomcat-6.0.35-8094/webapps
查看日志信息:[root@localhostbin]#tail-222f/opt/neco-tomcat-6.0.35-8094/logs/catalina.out
相关推荐
bluecarrot 2020-11-23
Attend 2020-11-17
ZHAICAN 2020-11-16
codedecode 2020-11-14
zhangbingb 2020-11-12
ykmail 2020-11-11
futurezone 2020-11-06
rikeyone 2020-11-04
橄榄 2020-11-04
WenCoo 2020-10-31
liuyuchen 2020-10-27
ROES 2020-10-24
Gexrior 2020-10-22
ZHAICAN 2020-10-20
风语者 2020-10-16
zhongguomin 2020-10-16
净无邪 2020-10-15