isTester.com发起人,某互联网公司测试经理,十年测试经验,公众号“简尚”; 致力于软件测试从业者综合能力提升 & 职场人每日进阶。 微信isTester 》》博客文章未标注转载均属「原创」,转载找老徐授权;

一个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/

$BQW!\ _%?0


51Testing软件测试网#_6]6N]0e1^|ia`

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软件测试网 Hd_,oYl'Xw&O

51Testing软件测试网.Z9n|0G5Ks^&W{

TAG: 软件测试 Linux

 

评分:0

我来说两句

显示全部

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

Open Toolbar