社区
其他技术讨论专区
帖子详情
重新创建gitlabs nginx conf文件
weixin_38048397
2019-09-12 12:46:44
我刚刚删除了我的gitlab omnibus nginx conf文件.是否可以重新创建? 使用gitlab-ci reconfigure似乎不起作用.但是我看到一些ruby模板负责创建nginx conf
...全文
43
1
打赏
收藏
重新创建gitlabs nginx conf文件
我刚刚删除了我的gitlab omnibus nginx conf文件.是否可以重新创建? 使用gitlab-ci reconfigure似乎不起作用.但是我看到一些ruby模板负责创建nginx conf
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
weixin_38051598
2019-09-12
打赏
举报
回复
如上所述,nginx-gitlab-http.conf由sudo gitlab-ctl reconfigure管理. 请注意,它被称为nginx-gitlab-http.conf,而不是gitlab-http.conf.它在gitlab-cookbooks/gitlab/recipes/nginx.rb中用于生成gitlab-http.conf 在gitlab-ctl重新配置后,您应该看到: Recipe: gitlab::nginx * directory[/var/opt/gitlab/nginx] action create (up to date) * directory[/var/opt/gitlab/nginx/etc] action create (up to date) * directory[/var/log/gitlab/nginx] action create (up to date) * template[/var/opt/gitlab/nginx/etc/gitlab-http.conf] action create (up to date) ... 仔细检查/etc/gitlab/gitlab.rb是否存在任何差异,这可能解释了为什么不重新创建此文件的原因. 确保执行sudo(如在sudo gitlab-ctl reconfigure中)以避免任何权限问题.
nginx
.
conf
拆分多个.
conf
文件
项目比较多,
nginx
.
conf
的
文件
也显得较为繁琐。如果都放在
nginx
.
conf
文件
中看起来又非常的杂乱,在
nginx
.
conf
文件
中使用include一...2. 在
nginx
conf
创建
你需要的多个 *.
conf
的
文件
,如
nginx
_80.
conf
,命名规则自己定
nginx
.
conf
配置外部 .
conf
文件
在
nginx
目录下新增一个目录,如名字为
conf
.d的目录,用于存放.
conf
配置
文件
。然后在
nginx
.
conf
文件
中的http{}中引入: include /usr/local/
nginx
/
conf
.d/*.
conf
; 在之前新增的目录
conf
.d中新建配置
文件
,以 ....
Nginx
配置
文件
(
nginx
.
conf
)详解
Nginx
配置
文件
(
nginx
.
conf
)详解
(最全篇)
nginx
.
conf
配置
文件
详解
默认的
nginx
.
conf
配置
文件
如下 #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/
nginx
.pid; events { worker...
nginx
conf
配置篇,如何配置.
conf
文件
nginx
.
conf
配置,结构和配置说明,常用案例,新增配置小技巧
其他技术讨论专区
476
社区成员
790,963
社区内容
发帖
与我相关
我的任务
其他技术讨论专区
其他技术讨论专区
复制链接
扫一扫
分享
社区描述
其他技术讨论专区
其他
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章