linux系统中使用shell脚本自启动tomcat

上传:feng_yf18143 浏览: 23 推荐: 0 文件:PDF 大小:44.58KB 上传时间:2021-01-15 07:11:31 版权申诉
linux系统中使用shell脚本自启动tomcat 在/etc/init.d下新建文件tomcat 命令:vi /etc/init.d/tomcat tomcat文件新建完毕后,检查文件格式是否为unix,如果格式为dos,需要先将文件格式切换成Unix 强制切换为unix格式的方法: :set ff=unix #转换为unix格式 :wq #保存、退出 编辑tomcat文件 命令:vim /etc/init.d/tomcat 输入i进入输入模式后开始编辑 #!/bin/sh -e # chkconfig: 345 80 90 # description:This is a tomcat s
上传资源
用户评论