linux – Varnish无法启动:无法从共享对象映射段:不允许操作
发布时间:2020-12-30 10:02:17 所属栏目:Linux 来源:互联网
导读:我在CentOS 6.7上安装了epel repo的清漆,它无法启动以下错误: Compiled VCL program failed to load: ./vcl.1P9zoqAU.so: failed to map segment from shared object: Operation not permittedVCL compilation failed 如果我使用varnishd
我在CentOS 6.7上安装了epel repo的清漆,它无法启动以下错误: Compiled VCL program failed to load: ./vcl.1P9zoqAU.so: failed to map segment from shared object: Operation not permitted VCL compilation failed 如果我使用varnishd二进制文件,我会在结尾处获得以下行 chdir("/var/lib/varnish/myserver.foo.bar") = 0 open("./vcl.1P9zoqAU.c",O_RDWR|O_CREAT|O_EXCL,0600) = 3 所以我检查了这个目录上的权限是正确的(加上我用root运行它),我禁用SELinux,重新启动,重新安装…… 你知道我的系统发生了什么吗? 解决方法作为varnish启动的一部分,它会生成一个 configuration of it’s behaviour的可加载库.这将由varnishd在运行时进行编译和加载.这是因为错误而被抱怨的事情:Compiled VCL program failed to load: ./vcl.1P9zoqAU.so: failed to map segment from shared object: Operation not permitted VCL compilation failed 也就是说这是一个失败的dlopen电话.较新的版本有a slightly more obvious message,其中说: dlopen(vcl_boot/vgc.so) = failed to map segment from shared object: Operation not permitted 在这种情况下,放置.so的目录驻留在使用noexec选项挂载的文件系统上,这会导致dlopen失败. 解决此问题需要使用exec选项重新安装此文件系统. (编辑:商洛站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- linux – 为什么我们在x86上需要zone_highmem?
- 访问DOCUMENT_ROOT之外的PHP类文件
- qemu – “xx-softmmu”和“xx-linux-user”之间有什么区别
- linux – 使用sed在每行的开头插入文本
- linux – 在rpm spec文件中列出两次文件
- LINUX实战:Linux基础知识:网络属性配置
- Linux内核:线程与进程 – task_struct对thread_info
- Zynq 7000上的嵌入式Linux,几乎丢弃了所有UDP数据包
- linux – 在ARM上构建mongo shell 3.2.x(armv7l / arm64 /
- Common Linux log files name and usage--reference