云中不知

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

1  安装mysql

a)  brew install mysql

安装完后会提示:

To have launchd start mysql now and restart at login:

  brew services start mysql

Or, if you don't want/need a background service you can just run:

  mysql.server start

根据需要选择自己要的

这样就安装完了,执行mysql.server start,服务就起来了,可以用

mysql -uroot 进去看看

 

之前还以为要初始化mysql, 实际上是不用的,那样只是重新在别的地方安装了一个db起来而已

不过密码还是要修改一下

cd /usr/local/opt/mysql/

./bin/mysql_secure_installation 

然后按照提示进行修改密码即可

 

2 安装redis

brew install redis

To have launchd start redis now and restart at login:

  brew services start redis

Or, if you don't want/need a background service you can just run:

  redis-server /usr/local/etc/redis.conf

 

redis 配置文件的位置 
/usr/local/etc/redis.conf

3 安装zookeeper

brew info zookeeper

brew install zookeeper

安装完毕提示:

To have launchd start zookeeper now and restart at login:

  brew services start zookeeper

Or, if you don't want/need a background service you can just run:

  zkServer start

 

配置文件地址:

/usr/local/etc/zookeeper/zoo.cfg 

4 安装activemq

brew install activemq

To have launchd start activemq now and restart at login:

  brew services start activemq

Or, if you don't want/need a background service you can just run:

  activemq start

5 安装nginx

brew info nginx

brew install nginx

装完以后提示:

The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that

nginx can run without sudo.

 

nginx will load all files in /usr/local/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

 

posted on 2017-07-18 09:51  云中不知  阅读(171)  评论(0编辑  收藏  举报