将web项目部署到liunx服务器上

1.在windows中将部署后的web项目copy到tomcat中的webapps目录中。
2.将tomcat打成war包,或者直接通过SSH工具导入到liunx服务器中。
3.打开shell命令窗口找到相应的tomcat

找到tomcat
hwrtb@linux181d56:~> cd apache-tomcat-7.0.2/

进入tomcat下的bin目录
hwrtb@linux181d56:~/apache-tomcat-7.0.2> cd bin

查看详情
hwrtb@linux181d56:~/apache-tomcat-7.0.2/bin>ll

启动
hwrtb@linux181d56:~/apache-tomcat-7.0.2/bin>./startup.sh

关闭
hwrtb@linux181d56:~/apache-tomcat-7.0.2/bin>./shutdown.sh

查看日志
hwrtb@linux181d56:~/apache-tomcat-7.0.2/bin> cd
hwrtb@linux181d56:~> cd apache-tomcat-7.0.2/
hwrtb@linux181d56:~/apache-tomcat-7.0.2> cd logs
hwrtb@linux181d56:~/apache-tomcat-7.0.2/logs> tailf catalina.out

ll显示详情。
./shutdown.sh关闭
./startup.sh启动
cd..进入下一级菜单
ls详情
chmod u+x filename  增加文件读写的权限

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值