zoukankan      html  css  js  c++  java
  • 【mac】安装配置 homebrew, Nginx

    1.在浏览器中打开 https://raw.githubusercontent.com/Homebrew/install/master/install.sh ,很多文章还在用的脚本链接是老的了,官网已替换为这个。

    2. 将此网页内容另存为install.sh

    3. #命令行中进入此脚本(install.sh)所在位置,

    执行以下内容chmod 755 install.sh

    4. ./install.sh

    5. brew info nginx

    • nginx: stable 1.19.10 (bottled), HEAD
      HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server
      https://nginx.org/
      Not installed
      From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/nginx.rb
      License: BSD-2-Clause
      ==> Dependencies
      Required: openssl@1.1 ✘, pcre ✘
      ==> Options
      --HEAD
          Install HEAD version
      ==> Caveats
      Docroot is: /opt/homebrew/var/www
      
      The default port has been set in /opt/homebrew/etc/nginx/nginx.conf to 8080 so that
      nginx can run without sudo.
      
      nginx will load all files in /opt/homebrew/etc/nginx/servers/.
      
      To have launchd start nginx now and restart at login:
        brew services start nginx
      Or, if you don't want/need a background service you can just run:
        nginx
      ==> Analytics
      install: 52,214 (30 days), 141,133 (90 days), 490,081 (365 days)
      install-on-request: 52,089 (30 days), 140,801 (90 days), 484,122 (365 days)
      build-error: 0 (30 days)

    6. brew install nginx

    7. open /opt/homebrew/etc/nginx/

    --------小尾巴 ________一个人欣赏-最后一朵颜色的消逝-忠诚于我的是·一颗叫做野的心.决不受人奴役.怒火中生的那一刻·终将结束...
  • 相关阅读:
    [LeetCode] 67. 二进制求和
    [LeetCode] 66. 加一
    [LeetCode] 65. 有效数字
    [LeetCode] 63. 不同路径 II
    [LeetCode] 64. 最小路径和
    [LeetCode] 61. 旋转链表
    [LeetCode] 62. 不同路径
    [LeetCode] 59. 螺旋矩阵 II
    [LeetCode] 60. 第k个排列
    [LeetCode] 58. 最后一个单词的长度
  • 原文地址:https://www.cnblogs.com/tianxiaxuange/p/14715186.html
Copyright © 2011-2022 走看看