博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
homebrew安装nginx,mysql,redis,zookeeper
阅读量:6266 次
发布时间:2019-06-22

本文共 1606 字,大约阅读时间需要 5 分钟。

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 阅读(
...) 评论(
...)

转载于:https://www.cnblogs.com/eric049/p/7198863.html

你可能感兴趣的文章
将图片转成base64字符串并在JSP页面显示的Java代码
查看>>
什么是WeakHashMap--转
查看>>
js 面试题
查看>>
第二十二节,三元运算
查看>>
Yacc 与 Lex 快速入门
查看>>
Unity中HDR外发光的使用
查看>>
Flume负载均衡配置
查看>>
Ajax详解
查看>>
Ubuntu C/C++开发环境的安装和配置
查看>>
百世汇通快递地区选择插件,单独剥离
查看>>
Linux系统调用---同步IO: sync、fsync与fdatasync【转】
查看>>
【MyBatis学习06】输入映射和输出映射
查看>>
[LeetCode] Decode String 解码字符串
查看>>
数字逻辑的一些基本运算和概念
查看>>
ant重新编译打包hadoop-core-1.2.1.jar时遇到的错
查看>>
【★★★★★】提高PHP代码质量的36个技巧
查看>>
3 weekend110的配置hadoop(格式化) + 一些问题解决 + 未免密码配置
查看>>
JavaScript Creating 对象
查看>>
Java compiler level does not match the version of the installed Java project facet.(转)
查看>>
WPF MediaElement.Position属性
查看>>