Homebrew命令:
1.brew install mysql gradle maven node
.
本地软件库列表:brew ls
.
查找软件:brew search google(其中google替换为要查找的软件关键字)
.
查看brew版本:brew -v 更新brew版本:brew update
SVN:
1.安装: brew install svn
Nginx
1.安装: brew install nginx
2.启动: nginx x.指定配置文件启动: nginx -c /xx/xx/xx.conf
3.停止:nginx -s stop
4.重载:nginx -s reload
5.版本:nginx -v
6.位置:/usr/local/Cellar/nginx/1.19.3
7.配置:/usr/local/etc/nginx
redis
1.安装:brew install redis(位置:/usr/local/Cellar/redis/6.0.8/)
2.启动:brew services start redis
3.关闭:brew services stop redis
4.重启:brew services restart redis
5.图形化界面:redis-cli
redis-cli —raw #解决中文乱码6.使用配置文件启动redis
redis-server /usr/local/etc/redis.conf7.停止redis服务
redis-cli shutdown8.redis配置文件位置
/usr/local/etc/redis.conf9.卸载redis
brew uninstall redis rm ~/Library/LaunchAgents/homebrew.mxcl.redis.plist10.允许远程访问
修改配置文件:#bind 127.0.0.1
zookeeper
1.安装:brew install zookeeper(位置:/usr/local/Cellar/zookeeper/3.6.2/)
2.查看配置文件:cd /usr/local/etc/zookeeper/
3.启动服务:zkServer start
4.查看状态:zkServer status
5.停止服务:zkServer stop
6.启动客户端:
7.卸载:brew uninstall zookeeper
RabbitMQ
1.安装:brew install rabbitmq
2.安装目录:/usr/local/Cellar/rabbitmq/3.8.8
3.启动:brew services start rabbitmq
4.当前窗口启动:rabbitmq-server x.访问:http://localhost:15672 (guest)
5.添加账号:./rabbitmqctl add_user admin admin
6.添加访问权限:./rabbitmqctl set_permissions -p “/” admin “.””.””.*”
7.设置超级权限:./rabbitmqctl set_user_tags admin administrator
Nacos:
1.启动: /Users/herongheng/work_tools/nacos/bin sh startup.sh -m standalone
2.停止: sh shutdown.sh