升级到osx优胜美地后Nginx破了
Nginx在Mavericks上工作的很好,现在我升级到Yosemite后,显示nginx命令没find ,我试着用brew安装nginx来安装nginx ,它显示错误
Error: You must brew link pcre before nginx can be installed
并brew link pcre
显示
Linking /usr/local/Cellar/pcre/8.35... Error: No such file or directory - /usr/local/Cellar/pcre/8.34/share/doc/pcre
它试图链接8.34。 我仍然重新安装它,我如何解决它?
我有同样的问题,也就是从小牛升级到优胜美地后,我得到了以下错误: nginx: [emerg] mkdir() "/usr/local/var/run/nginx/client_body_temp" failed (2: No such file or directory)
所有我需要做的解决这个问题是创build文件夹:
mkdir -p /usr/local/var/run/nginx/client_body_temp
我遇到了同样的问题。 我的解决scheme是简单地升级包: brew update ; brew upgrade nginx
brew update ; brew upgrade nginx
有同样的问题,重新安装nginx通过自制软件为我修复:
brew reinstall nginx