Use libc wrapper library to change bind port Monday August 11th, 201411:49 PM Uranus Zhou Technology, Network technology Sorry, this entry is only available in 中文. No related posts.
在树莓派上试 BIND_ADDR=”192.168.137.18″ BIND_PORT=8080 BIND_TYPE=TCP EXCLUDE_PORTS=80 LD_PRELOAD=bind.so /usr/local/nginx/sbin/nginx ERROR: ld.so: object ‘bind.so’ from LD_PRELOAD cannot be preloaded: ignored. Reply
在树莓派上试
BIND_ADDR=”192.168.137.18″ BIND_PORT=8080 BIND_TYPE=TCP EXCLUDE_PORTS=80 LD_PRELOAD=bind.so /usr/local/nginx/sbin/nginx
ERROR: ld.so: object ‘bind.so’ from LD_PRELOAD cannot be preloaded: ignored.
是不是 bind.so 的路径不对?
可以把 bind.so 换成绝对路径看看,不行也可以 strace 调试看看有没有确实加载库文件