常用软件的安装

MongoDB的安装

MongoDB安装完成后,

Ubuntu上启用SSH服务

sudo apt-get install openssh-server
sudo service ssh start

ZooKeeper的安装

  1. 从官网下载Zookeeper安装包
  2. tar -xvf zookeeper*.gz解压
  3. 拷贝其中的配置mv conf/zoo_sample.cfg conf/zoo.cfg
  4. bin/zkServer.sh start启动

Nginx

  1. 从官网下载并解压
  2. ./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

  1. 查看ssh是否允许
sudo systemsetup -getremotelogin
image.png
  1. 开启ssh
sudo systemsetup -setremotelogin on
  1. 开启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

你可能感兴趣的:(常用软件的安装)