回答
收藏
分享
举报
启动Nginx服务,文件变成只读。
提问于2021-01-24 12:28

浏览 4.4k

故障如图所示:

在一台centos6.5系统下,通过授权的root权限的admin账号安装和配置Nginx,但启动Nginx服务,报系统文件只读了,需要把系统重启一下就好了,不知道什么原因。

已修改于2023-03-10 12:41



写下您的回答
发表回答
全部回答(1)

按点赞数排序

按时间排序

该路径中文件系统(磁盘)为只读模式挂载,卸载后重新以读写形式挂载即可

赞同

0

回复举报

回答于2022-10-25 15:16



回复全冰三分糖
回复
提问者
浩聪
这家伙很懒还未留下介绍~
5
文章
15
问答
0
粉丝
相关问答

现在的nginx应该是只能从本地文件中读取证书。不过,应该可以修改代码添加通过http/tcp方式从远端服务器读取证书的方式。应该不是很困难。

点赞 0
浏览 3.9k

低版本,编译会打印md5和sha1。我测试1.10版本,是打印md5和sha1的,1.11以上不打印了,可以查看
https://github.com/nginx/nginx/tree/master源代码代码仓库auto/summary文件,里面有描述。下面为我本地Ubuntu18.04编译指令:
在代码根目录运行,./auto/configure --prefix=/opt/nginx --with-http_stub_status_module --with-http_ssl_module --with-stream --with-stream_ssl_module --add-module=/home/lq/work/tongmingzhiyun/openresty/lua-nginx-module-0.10.21 --add-module=/home/lq/work/tongmingzhiyun/openresty/ngx_devel_kit-0.3.1
Configuration summary
+ using system PCRE library
+ using system OpenSSL library
+ md5: using OpenSSL library
+ sha1: using OpenSSL library
+ using system zlib library

nginx path prefix: "/opt/nginx"
nginx binary file: "/opt/nginx/sbin/nginx"
nginx modules path: "/opt/nginx/modules"
nginx configuration prefix: "/opt/nginx/conf"
nginx configuration file: "/opt/nginx/conf/nginx.conf"
nginx pid file: "/opt/nginx/logs/nginx.pid"
nginx error log file: "/opt/nginx/logs/error.log"
nginx http access log file: "/opt/nginx/logs/access.log"
nginx http client request body temporary files: "client_body_temp"
nginx http proxy temporary files: "proxy_temp"
nginx http fastcgi temporary files: "fastcgi_temp"
nginx http uwsgi temporary files: "uwsgi_temp"
nginx http scgi temporary files: "scgi_temp"

点赞 0
浏览 3.8k