mac homebrew启动服务
来源:互联网 发布:linux怎么查看root密码 编辑:程序博客网 时间:2024/04/20 06:18
you can install the soft with brew install softname
eg:brew install mysql
or search soft with brew search softname
eg: brew search mysql
these services will install at /usr/local/opt
In OS X, these services are represented by files ending with .plist.these plists are usually stored in either ~/Library/LaunchAgents or /Library/LaunchAgents.
for example:
you can load mysql as followed:
ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents/
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
Or, if you don't want launchctl, you can just run:
mysql.server start
Doing all that takes too long, and I can never remember where Homebrew plists are. Fortunately, Homebrew includes a lovely interface for managing this without using
ln
, launchctl
or knowing where plists are.brew services
here is an example usage:
➜ brew services start mysql
==> Successfully started `mysql` (label: homebrew.mxcl.mysql)
you can restart it like this:
brew services restart mysql
or stop it:
brew services stop mysql
now, let's see evey service we've loaded:
brew services list
Name Status User Plist
mysql started xiezhenjia /Users/xiezhenjia/Library/LaunchAgents/homebrew.mxcl.mysql.plist
redis started xiezhenjia /Users/xiezhenjia/Library/LaunchAgents/homebrew.mxcl.redis.plist
if there is some unusable plist you can run brew services cheanup to remove them.
0 0
- mac homebrew启动服务
- mac Homebrew
- mac homebrew
- mac上用homebrew安装并启动postgresql数据库
- Mac 通过 Homebrew 安装 nginx 并设置开机启动配置
- Mac OS启动服务
- Mac 启动 sshd 服务
- MAC 启动apache服务
- mac 下的 homebrew
- mac下安装homebrew
- mac上安装homebrew
- 为Mac安装homebrew
- Mac安装Homebrew
- mac 安装homebrew
- MAC下安装HOMEBREW
- MAC安装Homebrew
- Mac HomeBrew 安装
- mac命令行安装homebrew
- 新账号开张
- 设计模式解析与实战之工厂方法模式
- Hibernate配置文件中hiberante.hbm2ddl.auto四个参数的配置
- 3.Maven工程开发
- Android 修改hosts解决更新SDK超时以及解决访问不了google、facebook和youtube等国外网站
- mac homebrew启动服务
- OpenMax
- Objective-C 2 第一个应用程序
- __FILE__,__LINE__,__DATE__,__TIME__,__FUNCTION__调试宏
- Android控件之ListView与BaseAdapter
- mysql union和union all有什么不同? 通常谁的效率更高?
- [LeetCode] Two Sum水过
- HTTPS 通信流程(签名、数字证书)
- Spring工作原理及其作用