午夜剧场伦理_日本一道高清_国产又黄又硬_91黄色网战_女同久久另类69精品国产_妹妹的朋友在线

您的位置:首頁技術文章
文章詳情頁

centos 7 nginx開機自啟動失敗,找不到原因

瀏覽:178日期:2024-06-12 16:38:30

問題描述

[root@localhost ~]# systemctl status nginx.service -l● nginx.service - The nginx HTTP and reverse proxy server Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since 二 2017-07-04 11:59:56 CST; 2h 20min ago Process: 1129 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE) Process: 1125 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)7月 04 11:59:52 localhost.localdomain systemd[1]: Starting The nginx HTTP and reverse proxy server...7月 04 11:59:56 localhost.localdomain nginx[1129]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok7月 04 11:59:56 localhost.localdomain nginx[1129]: nginx: [emerg] open() '/logs/adminchuxing.yunjiebao.cc.80.access.log' failed (13: Permission denied)7月 04 11:59:56 localhost.localdomain nginx[1129]: nginx: configuration file /etc/nginx/nginx.conf test failed7月 04 11:59:56 localhost.localdomain systemd[1]: nginx.service: control process exited, code=exited status=17月 04 11:59:56 localhost.localdomain systemd[1]: Failed to start The nginx HTTP and reverse proxy server.7月 04 11:59:56 localhost.localdomain systemd[1]: Unit nginx.service entered failed state.7月 04 11:59:56 localhost.localdomain systemd[1]: nginx.service failed.

centos 7 nginx開機自啟動失敗,找不到原因

權限已經全開給nginx的進程所有者了,為啥還是不行?

[root@localhost ~]# ll /logs總用量 56-rwxrwxrwx. 1 www-data www-data 43890 6月 28 11:23 adminchuxing.yunjiebao.cc.80.access.log-rwxrwxrwx. 1 www-data www-data 908 6月 26 17:30 chuxing.yunjiebao.cc.80.access.logdrwxrwxrwx. 2 www-data www-data 4096 7月 4 10:24 mfxxadmindrwxrwxrwx. 2 www-data www-data 4096 7月 4 10:00 mfxxapi

nginx.conf文件配置:

[root@localhost nginx]# cat nginx.confuser www-data vboxsf;worker_processes auto;error_log /var/log/nginx/error.log;pid /run/nginx.pid;events { use epoll; worker_connections 51200; multi_accept on;}

問題解答

回答1:

chmod nginx:nginx -R adminchuxing.yunjiebao.cc.80.access.log

回答2:

nginx.conf 里面的 user 的權限都打開了麼??你試一試把 user 對應的值改成 root ,看看能不能啟動

回答3:

nginx: [emerg] open() '/logs/adminchuxing.yunjiebao.cc.80.access.log' failed (13: Permission denied)這不是很清楚嗎

回答4:

配置文件和日志文件的讀寫權限沒給到自啟動nginx用戶或者組吧

相關文章:
主站蜘蛛池模板: 91久久综合亚洲鲁鲁五月天 | avove在线播放 | 香蕉a视频 | 91视频a | 四虎影院久久 | 日本一道高清 | av中文在线 | 亚洲精品aⅴ中文字幕乱码 亚洲精品视频在线 | 亚欧精品视频一区二区三区 | 免费欧美日韩 | 久久久久免费观看 | a一级黄色| 久久久久久久麻豆 | v在线 | 中文字幕无人区二 | 国产91高清 | 日韩 欧美 综合 | 青青草763 | 经典久久| 视频大全在线观看网址 | 欧美一区二区三区观看 | 成年视频在线播放 | www久久爱| 久久一二区| 国产又黄又色 | 欧美成人免费在线 | xxxx国产视频 | 国产黄色在线免费观看 | 欧美另类性 | 天天精品综合 | 男女草逼视频 | 国产亚洲视频在线 | 中文字幕观看在线 | 婷婷五月在线视频 | 真实的国产乱ⅹxxx实拍 | 国产一区二区不卡 | 综合九九| www伊人| 久久网中文字幕 | 亚洲精品伊人 | 日韩爱爱视频 |