Homebrew

1. Homebrew

1.1. 安装

国内推荐使用清华源: https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/

1.1.1. Homebrew Cask

http://mirrors.ustc.edu.cn/help/homebrew-cask.git.html

1.2. 使用

brew list
brew services
brew services restart stunnel
brew services --help
# 安装软件
brew install name

# 桌面端软件
brew cask install name

# 联网搜索软件是否存在 brew 中
brew search name

# 更新软件
brew upgrade name 

# 卸载软件
brew unistall name

# 重新安装软件
brew reinstall name

# 查看软件安装地址
brew info name

# 清理缓存
brew cleanup

# 查看建议, 例如升级等
brew doctor

1.3. 软件

1.3.1. nginx

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 restart nginx after an upgrade:
  brew services restart nginx
Or, if you don't want/need a background service you can just run:
  /opt/homebrew/opt/nginx/bin/nginx -g daemon off;

1.3.2. stunnel

A bogus SSL server certificate has been installed to:
  /opt/homebrew/etc/stunnel/stunnel.pem

This certificate will be used by default unless a config file says otherwise!
Stunnel will refuse to load the sample configuration file if left unedited.

In your stunnel configuration, specify a SSL certificate with
the "cert =" option for each service.

To use Stunnel with Homebrew services, make sure to set "foreground = yes" in
your Stunnel configuration.

To restart stunnel after an upgrade:
  brew services restart stunnel
Or, if you don't want/need a background service you can just run:
  /opt/homebrew/opt/stunnel/bin/stunnel
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

云满笔记

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值