nginx 搭建文件目录访问列表
cd /usr/share/nginx/html/
mkdir -p files/a/b/c
vim /etc/nginx/default.d/t1.conf
location / {
root /usr/share/nginx/html/files;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
}
升级步骤
yum install gcc pcre pcre-devel openssl openssl-devel zlib-devel gd gd-devel make
./configure
make
make install
make upgrade
kill -HUP <PID>
测试版本
curl -I 127.0.01
worker_processes auto