zoukankan      html  css  js  c++  java
  • nginx的环境配置的问题

    在安装好nginx之后,运行nginx,报错:

    nginx

    dyld: Library not loaded: /usr/local/lib/libpcre.1.dylib

    Referenced from: /usr/local/bin/nginx

    Reason: image not found

    我们可以通过brew doctor来查看具体的出现的问题。

    brew doctor

    结果得到如下信息:

    Warning: You have unlinked kegs in your Cellar
    Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
    those kegs to fail to run properly once built. Run `brew link` on these:
    
        pcre

    然后执行:

    brew link

    之后又出现错误的提示如下:

    brew link pcre
    Linking /usr/local/Cellar/pcre/8.36... 
    Error: Could not symlink share/man/man3/pcre.3
    /usr/local/share/man/man3 is not writable.

    最后在网上找到如下解决方案:

    sudo chown -R $(whoami) /usr/local/share/man/man3

    接下来,在link操作就可以啦:

    brew link pcre  

    哈哈,这样就可以成功运行nginx啦。

    可以通过localhost:8080进行查看。

    结果如下:

  • 相关阅读:
    pandas.DataFrame.to_excel
    python list [:1]
    python 读取文件
    pandas 中的常用数学计算
    神经网络相关术语
    keras初探
    机器学习相关
    Numpy random arange zeros
    numpy 常用函数
    【Redis学习之四】Redis数据类型 string
  • 原文地址:https://www.cnblogs.com/xiaohaillong/p/5798629.html
Copyright © 2011-2022 走看看