【nginx基本配置】

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

网络安全交流需求,请加QQ群:454307026(网络安全才加)。开通B站UP主:sec875,关键词搜索:sec875,主要发布安全书籍的读书心得。 【本人不保证技术的实用性,一切文章仅供参考,如有谬错,请留言】
原文地址:https://www.cnblogs.com/sec875/p/14320398.html