整理于网络
系统版本:centos7
yum install -y nginx php php-cli php-common php-pdo rrdtool-php gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel lighttpd-fastcgi pcre pcre-devel #相关支持文件安装
NGINX的网站目录位于:
/usr/share/nginx/html
NGINX的配置文件位于:
/etc/nginx/ nginx.conf
nginx -t 测试配置文件
nginx -v 查看相关版本