随笔分类 - nginx
摘要:sudo apt install -y build-essential libpcre3 libpcre3-dev zlib1g zlib1g-dev libssl-dev wget ./configure --user=www --group=www --prefix=/usr/local/ngi
阅读全文
摘要:参考文档:https://www.cnblogs.com/suruozhong/p/12468167.html 一、修改配置文件 vim /etc/gitlab/gitlab.rb # 让gitlab的内置nginx监听9002端口 nginx['listen_port'] = 9002 # 设置g
阅读全文
摘要:参考文档:https://blog.csdn.net/weixin_51410036/article/details/109098193 开机启动配置 需要用到 WinSW.NET4.exe; 百度网盘:https://pan.baidu.com/s/192khsPq1KNSRbB7PrBsBQA
阅读全文
摘要:nginx 启动停止脚本 #!/bin/sh # # nginx - this script starts and stops the nginx daemin # # chkconfig: - 85 15 # description: Nginx is an HTTP(S) server, HTT
阅读全文
摘要:Nginx配置中一个不起眼字符"/"的巨大作用,失之毫厘谬以千里 Nginx作为一个轻量级的,高性能的web服务软件,因其占有内存少,并发能力强的特点,而广受欢迎和使用。国内很多大型互联网公司也对Nginx很是青睐。像BAT(百度,阿里和腾讯),TMD(头条,美团和滴滴)等等。使用过Nginx的同学
阅读全文
摘要:nginx 文件列表设置: 模块:Module ngx_http_autoindex_module location / { autoindex on; } nginx安全认证模块:
阅读全文
摘要:Nginx1.18部署 nginx-1.18.0部署 1. 部署前准备 /usr/sbin/groupadd www && /usr/sbin/useradd -g www www && ulimit -SHn 65535 && systemctl disable firewalld.service
阅读全文
摘要:1、Centos7添加nginx为系统服务、 vi /usr/lib/systemd/system/nginx.service [Unit] Description=nginx - web server After=network.target remote-fs.target nss-lookup
阅读全文