1 Star 14 Fork 2

陈全 / Nginx Dry Goods Tutorial

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
02-Nginx初始化配置.md 518 Bytes
一键复制 编辑 原始数据 按行查看 历史
root 提交于 2023-06-03 22:54 . initialize the project

一、创建 Nginx 运行使用的用户 www

/usr/sbin/groupadd www

/usr/sbin/useradd -g www www

二、配置Nginx.conf

将/usr/local/webserver/nginx/conf/nginx.conf替换为《nginx初始化替换内容.txt》中的内容

三、正确性检查

/usr/local/webserver/nginx/sbin/nginx -t

出现如下提示即为检查成功:

nginx: the configuration file /usr/local/webserver/nginx/conf/nginx.conf syntax is ok

nginx: configuration file /usr/local/webserver/nginx/conf/nginx.conf test is successful

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cangshanchenquan/nginx-dry-goods-tutorial.git
git@gitee.com:cangshanchenquan/nginx-dry-goods-tutorial.git
cangshanchenquan
nginx-dry-goods-tutorial
Nginx Dry Goods Tutorial
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891