zoukankan      html  css  js  c++  java
  • Nginx Mac笔记

    安装

    brew install nginx

    可能出现问题:

    Error: /usr/local is not writable. You should change the
    ownership and permissions of /usr/local back to your
    user account:
      sudo chown -R $(whoami) /usr/local
    fatal: could not create leading directories of '/usr/local/Library/Taps/homebrew/homebrew-core': Permission denied

    解决办法:

    先卸载brew:

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

    再重装:

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    简单命令

    启动

    nginx

    停止

    nginx -s stop

    重启

    nginx -s reload
  • 相关阅读:
    单词接龙
    字符串,字符数组
    马的遍历
    约瑟夫问题
    扫雷游戏
    寻找道路
    传纸条
    数的划分
    火柴棒等式
    火星人
  • 原文地址:https://www.cnblogs.com/lovesong/p/10260694.html
Copyright © 2011-2022 走看看