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 增加文件读写的权限