Installment - xeejp/xee3rd-legacy GitHub Wiki
for Windows users
for Mac OS users
for Linux users
How to setup Server
OS install
CentOS 7
言語やネットワーク設定をしてください。
proxyの設定はネットワーク設定から可能です。
ブラウザ等で、ネットワークに接続できているか確認してください。
(proxyサーバーにつながっている場合、ping
コマンドではproxyサーバーまでの接続しか確認できません)
yum setup
proxyの設定があるなら、/etc/yum.conf
にproxy設定を書きます。
proxy=http://[proxy-server]:[port]
yum
はroot権限で実行してください。
root権限にするにはsudo -s
を使います。
(sudoではよくないみたいです)
OSをインストールしたあとは、とりあえずyumを最新バージョンにアップデートします。
yum update
wget setup
proxyの設定があるなら、~/.wgetrc
にproxy設定を書きます。
use_proxy=on
http_proxy=http://[proxy-server]:[port]
introduction
はじめにyumでgccやmakeをインストールしておきます。
sudo yum install gcc glibc-devel make ncurses-devel openssl-devel autoconf
erlang install
ソースをインストールしてビルドします。
wget http://www.erlang.org/download/otp_src_18.0.tar.gz
tar zxvf otp_src_18.0.tar.gz
cd otp_src_18.0
./configure
make
sudo make install
Elixer install
Elixer
はyumでは入れることができないので、ソースをインストールしてビルドします。
wget https://github.com/elixir-lang/elixir/releases/download/v1.0.5/Precompiled.zip
sudo unzip Precompiled.zip -d /opt/elixir
export PATH=/opt/elixir/bin:$PATH
hex install
phoenix install
nodejs install
とりあえずepel
をインストールします。
yum install epee-release
そして、nodejsとnpmのインストール
yum install nodes npm --enablerepo=epel
gccが入っていなかったら
yum install gcc gcc-c++
※ yumでインストールされるnode.jsのバージョンが古い場合があるので、公式ページからインストールしたほうがいいです。
postgres install
yum -y install postgresql
yum -y install postgresql-server
-y
は、(Y,n)を聞かれた時すべてyesと応えるオプションです。
ssh setup
Reference
install script
#This script must run in root
# introduction
sudo -s
echo "\nproxy=http://172.16.0.253:10080" >> /etc/yum.conf
echo "\nuse_proxy=on\nhttp_proxy=http://172.16.0.253:10080" >> ~/.wgetrc
yum -y update
yum -y install gcc glibc-devel make ncurses-devel openssl-devel autoconf
# erlang
wget http://www.erlang.org/download/otp_src_18.0.tar.gz
tar zxvf otp_src_18.0.tar.gz
cd otp_src_18.0
./configure
make
make install
# elixir
wget https://github.com/elixir-lang/elixir/releases/download/v1.0.5/Precompiled.zip
unzip Preconpiled.zip -d /opt/elixir
export PATH=/opt/elixir/bin:$PATH
echo "export PATH=/opt/elixir/bin:$PATH" >> ~/.bashrc
# nodejs
yum -y install epel-release
yum -y install nodejs
yum -y install npm --enablerepo=epel
yum -y install gcc gcc-c++
# postgres
yum -y install postgresql-server
yum -y install postgresql