nginx

2 posts

Posts by tag / 2

Centos7编译安装Nginx加入Lua脚本支持

关闭防火墙 系统更新 类库安装 安装LuaJIT 安装Nginx 我所遇到的异常 启动测试 常用API 关闭防火墙 # 关闭防火墙 [root@cent local]# systemctl stop firewalld.service # 关闭防火墙自启动 [root@cent local]# systemctl disable firewalld.service 系统更新 # 常规更新 [root@cent local]# yum »

Nginx https基本配置

这是记录我所用到的 nginx 基本配置, 这其中包括屏蔽 *.php 请求, 配置 https , 基本的域名反向代理 〇. 首先说一下nginx 下载安装 sudo apt install nginx 新建配置文件 sudo vim /etc/nginx/conf.d/blog.conf 加载nginx应用配置文件 sudo service nginx restart sudo nginx -s reload 默认日志文件位置 su »