MongoDB的安装
MongoDB安装完成后,
Ubuntu上启用SSH服务
sudo apt-get install openssh-server
sudo service ssh start
ZooKeeper的安装
- 从官网下载Zookeeper安装包
- tar -xvf zookeeper*.gz解压
- 拷贝其中的配置mv conf/zoo_sample.cfg conf/zoo.cfg
- bin/zkServer.sh start启动
Nginx
- 从官网下载并解压
- ./configure --prefix=/opt/nginx --sbin-path=/opt/nginx/sbin/nginx
openresty
tar -xvf openresty-VERSION.tar.gz
cd openresty-VERSION/
./configure -j2
make -j2
sudo make install
Hadoop
- 查看ssh是否允许
sudo systemsetup -getremotelogin
image.png
- 开启ssh
sudo systemsetup -setremotelogin on
- 开启ssh免密登陆
ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
ssh-add ~/.id_rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh localhost
3.brew install hadoop
网友评论