1)SHELL编程一键部署NginxWEB平台脚本(v1)版本

​#!/bin/bash

#2021年10月16日12:22:34

#auto install nginx web

#byu author www.jfedu.net

############################

yum install -y wget gzip tar make gcc

yum install -y pcre pcre-devel zlib-devel

wget -c http://nginx.org/download/nginx-1.18.0.tar.gz -P /usr/src/

cd /usr/src/

ls -l nginx-1.18.0.tar.gz

tar -xzvf nginx-1.18.0.tar.gz

cd nginx-1.18.0/

useradd -s /sbin/nologin www -M

./configure --prefix=/usr/local/nginx/ --user=www --group=www --with-http_stub_status_module

make

make install

ls -l /usr/local/nginx/

/usr/local/nginx/sbin/nginx

ps -ef|grep nginx

netstat -tnlp|grep 80

setenforce 0

systemctl stop firewalld.service

SHELL编程入门&变量实战_SHELL编程一键部署nginx

SHELL编程入门&变量实战_SHELL编程一键部署nginx_02