-bash: /application/nginx/sbin/nginx: No such file or directory启动nginx时出现的

[root@mode bin]# /application/nginx/sbin/nginx -t
-bash: /application/nginx/sbin/nginx: No such file or directory

在启动nginx时,出现这个问题怎么解决呢,

我的解决办法是:

-bash: /application/nginx/sbin/nginx: No such file or directory启动nginx时出现的_第1张图片

查找 libpcre.so* 找到其路径

编辑/etc/ld.so.conf

添加:/usr/local/lib

最后一步敲命令ldconfig 使修改生效

你可能感兴趣的:(-bash: /application/nginx/sbin/nginx: No such file or directory启动nginx时出现的)