sh ubuntu_xenial_xerus_setup.sh
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh ubuntu_xenial_xerus_setup.sh相关的知识,希望对你有一定的参考价值。
#!/bin/bash
sudo apt-get update
# Check curl
if [ ! -z "$(command -v curl)" ]; then
curl --version | head -1
else
sudo apt-get install curl
curl --version | head -1
fi
sudo apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev git-core libreadline-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
# Install rbenv
cd
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
# exec $SHELL
source ~/.bashrc
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
# exec $SHELL
source ~/.bashrc
rbenv install 2.3.1
rbenv global 2.3.1
ruby -v
echo "gem: --no-document" > ~/.gemrc
gem install bundler
rbenv rehash
# Install node
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
# Install redis
sudo apt-get install redis-server
# Install mongodb
# Install elasticsearch
以上是关于sh ubuntu_xenial_xerus_setup.sh的主要内容,如果未能解决你的问题,请参考以下文章
sh sh_template.sh
sh sh.sh
Linux下面如何运行 SH文件
配置告警系统主脚本main.sh mon.sh load.sh 502.sh disk.sh
shell 脚本各种执行方式(source ./*.sh, . ./*.sh, ./*.sh)的区别
linux下sh文件的运行