摘要: #!/bin/bash ############Setup basic path and configuration file name #########################date=`date +%Y%m%d`tomcat_home=/usr/local/kencery/tomcat 阅读全文
posted @ 2018-05-31 09:23 xiao_pai_pai 阅读(139) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash #function: 自动发布项目脚本#filename: deploy.sh#author:xxxxx#date: 2017-04-24 source /etc/profile echo -e "本次执行传入参数为:$#" #首次检查参数个数是否正确if [ $# -ne 阅读全文
posted @ 2018-05-31 09:22 xiao_pai_pai 阅读(162) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash# cat << EOF+ +| 初始化 Centos-6.x 系统 |+ +EOFecho "" # Check if user is rootif [ $(id -u) != "0" ]; then echo -e "\033[31m Error: 你需要使用root用户权 阅读全文
posted @ 2018-05-31 09:14 xiao_pai_pai 阅读(194) 评论(0) 推荐(0) 编辑