当前位置: 首页 > news >正文

网站后台ftp邢台做网站建设公司哪家好?

网站后台ftp,邢台做网站建设公司哪家好?,国家企业信息服务平台,网站推广优化建设文章目录一、脚本开发1. 编写脚本2. 修改脚本3. 赋予权限二、脚本执行2.1. 启动tomact2.2. 查看tomact状态2.3. 停止tomact一、脚本开发 1. 编写脚本 vim start-tomcat.sh添加以下内容#xff1a; #!/bin/bash# description: Tomcat start/stop/status script#Location of … 文章目录一、脚本开发1. 编写脚本2. 修改脚本3. 赋予权限二、脚本执行2.1. 启动tomact2.2. 查看tomact状态2.3. 停止tomact一、脚本开发 1. 编写脚本 vim start-tomcat.sh添加以下内容 #!/bin/bash# description: Tomcat start/stop/status script#Location of JAVA_HOME (bin files) #JDK安装路径 export JAVA_HOME/app/jdk1.8.0_301#Add Java binary files to PATH export PATH$JAVA_HOME/bin:$PATH#CATALINA_HOME is the location of the bin files of Tomcat #Tomcat安装路径 export CATALINA_HOME/app/apache-tomcat-7.0.109#CATALINA_BASE is the location of the configuration files of this instance of Tomcat #Tomcat安装路径 export CATALINA_BASE/app/apache-tomcat-7.0.109 #Tomcat进程日志目录,方便启动好直接打印 logfile/app/apache-tomcat-7.0.109/logs/catalina.out#TOMCAT_USER is the default user of tomcat #Tomcat的启动用户 export TOMCAT_USERpis#TOMCAT_USAGE is the message if this script is called without any options TOMCAT_USAGEUsage: $0 {\e[00;32mstart\e[00m|\e[00;31mstop\e[00m|\e[00;32mstatus\e[00m|\e[00;31mrestart\e[00m}#SHUTDOWN_WAIT is wait time in seconds for java proccess to stop SHUTDOWN_WAIT3tomcat_pid() {echo ps -fe | grep $CATALINA_BASE/conf | grep -v grep | tr -s |cut -d -f2 }start() {pid$(tomcat_pid)if [ -n $pid ]thenecho -e \e[00;31mTomcat is already running (pid: $pid)\e[00melse# Start tomcatecho -e \e[00;32mStarting tomcat\e[00m#if [ user_exists $TOMCAT_USER 1 ];then# su $TOMCAT_USER -c $CATALINA_HOME/bin/startup.sh#else#引用上面的变量启动脚本sh $CATALINA_HOME/bin/startup.sh#fistatusfi#引用上面变量名logfile 打印日志tail -f ${logfile}return 0 }status(){pid$(tomcat_pid)if [ -n $pid ]; then echo -e \e[00;32mTomcat is running with pid: $pid\e[00melse echo -e \e[00;31mTomcat is not running\e[00mfi }stop() {pid$(tomcat_pid)if [ -n $pid ]thenecho -e \e[00;31mStoping Tomcat\e[00msh $CATALINA_HOME/bin/shutdown.shlet kwait$SHUTDOWN_WAITcount0;until [ ps -p $pid | grep -c $pid 0 ] || [ $count -gt $kwait ]doecho -n -e \n\e[00;31mwaiting for processes to exit\e[00m;sleep 1let count$count1;doneif [ $count -gt $kwait ]; thenecho -n -e \n\e[00;31mkilling processes which didnt stop after $SHUTDOWN_WAIT seconds\e[00mkill -9 $pidfielseecho -e \e[00;31mTomcat is not running\e[00mfireturn 0 }user_exists(){if id -u $1 /dev/null 21; thenecho 1elseecho 0fi }case $1 instart)start;;stop)stop;;restart)stopstart;;status)status;;*)echo -e $TOMCAT_USAGE;; esac exit 0 2. 修改脚本 第1处JAVA_HOME 第2处CATALINA_HOME 鼠标选中/app/apache-tomcat-7.0.109ctrlf-【替换】输入实际tomcat路径点击全部替换即可 第3处 TOMCAT_USER根据实际情况我的用户是pis 3. 赋予权限 chmod x start-tomcat.sh二、脚本执行 2.1. 启动tomact ./start-tomcat.sh start2.2. 查看tomact状态 ./start-tomcat.sh status2.3. 停止tomact ./start-tomcat.sh stop
http://www.pierceye.com/news/39/

相关文章:

  • 地方网站还有得做吗网站建设的功能
  • 网站中点击链接怎么做淮北矿业 集团 工程建设有限责任公司网站
  • 建设项目环境影响备案网站wordpress添加搜索框
  • 昆明网站设计制造爱站网关键词挖掘机
  • 做医疗竞价网站网站开发系统架构图
  • 2015做微网站多少钱网页界面设计中一般使用的分辨率的显示密度是
  • 常州网站建设多少钱英国做电商网站有哪些
  • 可以做推送的网站wordpress国内视频网站
  • 做高清视频的网站做外贸网站教程
  • 沧州企业网站建设方案长春企业网站如何建设
  • 网站建设到运营需要多少钱辽宁朝阳哪家做网站好
  • 网站制作哪里好龙岗网站开发公司
  • 网站如何制作怎么做透明的网站图片
  • 建设化工网站的目的自适应的网站模板
  • 绵阳 网站四川省建设厅资格注册中心网站
  • 吴彦祖做的艺术家网站最火的深圳网站建设
  • 网站如何设置默认首页北京名片设计制作
  • 泉州seo建站冷门不重名的公司名称
  • 潮州网站推广优化什么程序做网站安全
  • 网站上截小屏幕 怎么做网站 备案 营业执照
  • 注册网站安全吗网站设计书的结构
  • 国外直播做游戏视频网站有哪些互联网营销师证
  • 下载模板后怎么建设网站站长之家怎么找网址
  • 上海优化网站公司网站如何增加百度权重的方法
  • 长春 网站建设桂林市内必去的地方
  • 涵江网站建设对网络推广的理解
  • 南昌建站费用WordPress十大免费CMS主题
  • 类似于滴滴的网站商城建设采集规则wordpress
  • 网站设计定做好网站目录
  • 北京创意网站建设低代码开发公众号