shell—服务启动脚本的编写
shell—服务启动脚本的编写 1.安装nginx 首先在官网获得nginx的安装包 tar zxf nginx-1.16.1.tar.gz cd nginx-1.16.1/ yum install gcc zlib zlib-devel openssl-devel -y #解决依赖性 ./configure --prefix=/usr/local/nginx make && make install 当看到Makefile和objs时说明安装成功 2.启动和关闭nginx /usr/local/nginx/sbin/nginx #启动 /usr/local/nginx/sbin/n