https://edu.aliyun.com/lesson_1716_13933#_13933

php-fpm(FastCGI独立模块进程)lnmp


url rewirte:http://www.baidu.com/bbs --> http://www.baidu.com/forum 跳转到新的地址
alias(路径别名) /var/www/html/index.html
/var/www/html/news http://baidu.com/news/index.html
alias /news /data/www/



nginx.org 官方文档


stable是稳定版,生产环境中可以用的
epel
yum info nginx

cd /etc/yum.repos.d/
ls
vim nginx.repo

yum info nginx
yum install nginx
rqm -ql nginx
源码编译的路径

nginx -h
nginx 用这个启,就用这个停(nginx -s stop)
ss -ntlp
apache实现的是http的虚拟主机,nginx可以实现https的虚拟主机


ps aux
pstree

nginx -t
nginx -s reload
getent passwd nginx

如果是编译安装,账号得手动创建
killall nginx
