坐标深圳,测试经理,干了十年测试,公号"简尚" ,博客isTester.com ,关注「软件测试从业者综合能力提升 & 职场人每日进阶」,个人微信957863300

一个Shell脚本shell实例,囊括测试工程师必备linux常用命令

上一篇 / 下一篇  2018-10-24 15:44:32 / 个人分类:linux

       

 1
echo "nginx setup start!"


yum -y install gcc gcc-c++ make libtool zlib zlib-devel openssl openssl-devel pcre pcre-devel

# 得到当前环境的执行目录
dir=$(cd $(dirname $0); pwd)

cd /usr/local
mkdir -p isTester.com && cd /usr/local/isTester.com


wget http://nginx.org/download/nginx-1.12.0.tar.gz
tar -zxvf nginx-1.12.0.tar.gz
cd nginx-1.12.0


./configure --prefix=/usr/local/isTester.com/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre


make && make install


# mkdir /usr/local/isTester.com/nginx/conf/conf_dir


mkdir -p /App/logs/nginx/logs/


#rm -rf /usr/local/isTester.com/nginx/conf/nginx.conf

#cp -f $dir/nginx.conf /usr/local/isTester.com/nginx/conf/

/lHQTw.e"bmA0


51Testing软件测试网(i$uwEjm5H*U!]eH

cp /usr/local/isTester.com/nginx/sbin/nginx /usr/local/bin/ nginx -c /usr/local/isTester.com/nginx/conf/nginx.conf echo `nginx -V` #nginx -s stop #停止 nginx 服务 echo `ps -ef | grep nginx` echo "nginx setup complete!" echo "------- By Ido isTester.com -------"51Testing软件测试网Sa/W7QM,t/}W

51Testing软件测试网)M X3jtwJM-M oq

TAG: 软件测试 Linux

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

Open Toolbar