记录一点nginx-kafka的坑

记录一点nginx-kafka的坑_第1张图片
git的时候后报错

/src/github.com/lib/pq/.git/
error:  while accessing https://github.com/lib/pq/info/refs
 
fatal: HTTP request failed

解决:
1.yum install curl curl-devel
2.Yum update nss

启动nginx报错

error while loading shared libraries: librdkafka.so.1: cannot open shared object file: No such file or directory

解决:

#开机加载/usr/local/lib下面的库
echo "/usr/local/lib" >> /etc/ld.so.conf
#手动加载
ldconfig

启动nginx报错

nginx: [alert] could not open error log file: open() "/usr/local/nginx/logs/error.log" failed (2: No such file or directory)
2019/01/04 10:25:47 [emerg] 6288#0: open() "/usr/local/nginx/conf/nginx.conf" failed (2: No such file or directory)

解决:编译nginx时候默认在/uer/local/下面
我安装后移动了nginx的位置,导致找不到error.log,别几把乱移动文件就行了
还有就是可能你的权限不够 直接给nginx777或者以root用户登录
未完…

你可能感兴趣的:(nginx)