![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
MaJson
这个作者很懒,什么都没留下…
展开
-
编译安装nginx
下载源码包打开nginx官方网址选择Stable version下载文档版下载安装cd /usr/local/srcwget wget http://nginx.org/download/nginx-1.12.0.tar.gztar zxvf nginx-1.12.0.tar.gzcd nginx-1.12.0安装检测./configure --prefix=/usr/l...原创 2017-05-28 22:16:16 · 338 阅读 · 0 评论 -
nginx之LNMP配置知识
nginx之LNMP配置知识nginx.conf简写#user nobody;worker_processes 4;error_log /var/log/nginx/error.log;#pid logs/nginx.pid;events { worker_connections 1024;}http { include...原创 2017-06-01 16:24:41 · 290 阅读 · 0 评论 -
设置跳转的二级域名
设置IP或其它域名访问时重定向到www.xxx.comserver{ listen 80 default; server_name _; ##标示空主机头 location / { #返回 403 return 403; } #rewrite ^(.*) http://www.baidu.com; #重定向到百度}...原创 2018-04-10 11:34:02 · 4903 阅读 · 0 评论