随笔分类 - 脚本文件
摘要:备份脚本(备份成文件夹).bat @echo off set dir=ROOT set tobeBackupDir=%cd%\%dir% echo echo 待备份目录:%tobeBackupDir% echo if not exist %tobeBackupDir% ( echo. echo 待备
阅读全文
摘要:#!/bin/bash # # Startup script for Nginx - this script starts and stops the nginx daemon # # chkconfig: - 85 15 # description: Nginx is an HTTP(S) ser
阅读全文
摘要:#!/bin/sh # # Simple Redis init.d script conceived to work on Linux systems # as it does use of the /proc filesystem. ### BEGIN INIT INFO # Provides:
阅读全文
摘要:脚本文件需注意编码格式,Windows下是ANSI格式的,用开发工具打开看到可能是乱码的,可以用notepad++或其它工具编辑 @echo off::cd %~dp0表示回到脚本文件所在目录 :begin echo 请选择您需要打包的项目 echo 0 退出系统 echo 1 backend ec
阅读全文
摘要:应用启动脚本: #!/bin/bash # # author:liusha # description: JAVA APP start|stop|restart|status. ENV=dev APP_HOME=`pwd` APP_NAME=demoApp RUNNING_USER=root LOG
阅读全文
摘要:#!/bin/bash # # author:liusha # description: SVN Server start|stop|restart|status. USER=root HOME=/home/svn SERVER_NAME="SVN Server" pid=0 #获取进程号 getP
阅读全文