Last active
October 3, 2016 04:46
-
-
Save tkuchiki/4f62eb6e265196d0f35b39cfc7fc3a16 to your computer and use it in GitHub Desktop.
Ubuntu 16.04 に Erlang 17.5 + Riak 2.1.4 をインストール
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install -y build-essential libncurses5-dev libssl-dev git libpam0g-dev curl | |
# install Erlang 17.5 | |
cd /usr/local/src | |
curl -L http://erlang.org/download/otp_src_17.5.tar.gz -O | |
tar zxf otp_src_17.5.tar.gz | |
cd otp_src_17.5 | |
./configure --prefix=/opt/erlang/17.5 --enable-smp-support --enable-threads --enable-m64-build --enable-kernel-poll --enable-hipe --without-javac --enable-dirty-schedulers --enable-sha | |
ring-preserving | |
make install | |
for b in $(ls /opt/erlang/17.5/bin/); do ln -s /opt/erlang/17.5/bin/${b} /usr/bin/ ; done | |
# install rebar | |
git clone git://github.com/rebar/rebar.git /usr/local/src/rebar | |
cd /usr/local/src/rebar/ | |
./bootstrap | |
mv rebar /usr/bin/ | |
# install Riak | |
cd /usr/local/src | |
curl -O http://s3.amazonaws.com/downloads.basho.com/riak/2.1/2.1.4/riak-2.1.4.tar.gz | |
tar zxf riak-2.1.4.tar.gz | |
cd riak-2.1.4 | |
make locked-deps | |
make rel | |
mv rel/riak /opt/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Riak is a distributed data store | |
[Service] | |
Type = forking | |
# WIP | |
User = root | |
Group = root | |
LimitNOFILE = 65536 | |
ExecStart = /opt/riak/bin/riak start | |
ExecStop = /opt/riak/bin/riak stop | |
[Install] | |
WantedBy = multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment