zypper -n in make gcc gcc-c++ protobuf-devel ncurses-devel \
jemalloc-devel boost-devel tar wget m4 which \
openssl-devel libcurl-devel automake autoconf \
libtool libicu-devel git libsodium-devel
直接下载二进制文件
# 安装
tar xf /dist/dist/stf/node-v4.1.0-linux-x64.tar.gz
mv node-v4.1.0 node
ln -s /usr/local/node/bin/* /usr/bin/
现在的sdk包已经不包含adb这个命令,需要额外安装
# 下载链接
wget http://dl.google.com/android/android-sdk_r24.3.4-linux.tgz
# 软件包解压缩到/usr/local
# 列出所有sdk
./android list sdk --all
# 安装指定版本的sdk,其中2,3位上面指令输出的sdk编码
./android update sdk -u -a -t 2,3
先git下来,再切换到tags为v2.5.0的版本, 这里好像会依赖于gtest,这文件在墙外,如果不具备翻墙环境,会比较麻烦
git clone https://github.com/google/protobuf.git
cd protobuf
git checkout v2.5.0
./configure && make && make install
tar xf rethinkdb-2.1.4.tgz
cd rethinkdb-2.1.4
./configure -dymanic jemalloc —prefix=/usr/local/rethinkdb
make && make install
mkdir -p /etc/rethinkdb/instances.d/
/bin/cp packaging/assets/config/default.conf.sample /etc/rethinkdb/
/bin/cp packaging/assets/config/default.conf.sample /etc/rethinkdb/instances.d/instance1.conf
sed -i 's/# bind=127.0.0.1/bind=127.0.0.1/' /etc/rethinkdb/instances.d/instance1.conf
chown -R rethinkdb.rethinkdb /var/run/rethinkdb
ln -s /usr/local/rethinkdb/bin/rethinkdb /usr/bin/
tar xf GraphicsMagick-1.3.21.tar.gz
cd GraphicsMagick-1.3.21
./configure && make && make install
tar xf zeromq-4.1.3.tar.gz
cd zeromq-4.1.3
./configure && make && make install
看起来很简单,但好像会依赖大量第三方包,而我们的墙。。。
npm install -g stf
见链接
pip install supervisor
见链接
[unix_http_server]
file=/tmp/supervisor.sock
[supervisord]
logfile=/data/logs/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10 ; (num of main logfile rotation backups;default 10)
loglevel=info ; (log level;default info; others: debug,warn,trace)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
nodaemon=false ; (start in foreground if true;default false)
minfds=65535 ; (min. avail startup file descriptors;default 1024)
minprocs=200 ; (min. avail process descriptors;default 200)
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///tmp/supervisor.sock
[program:stf]
command = /usr/bin/stf local --public-ip 192.168.xx.xx
numprocs = 1
autostart = true
autorestart = true
redirect_stderr = true
stdout_logfile=/data/logs/stf.log
stdout_logfile_maxbytes=50MB
stdout_logfile_backups=5
stdout_capture_maxbytes=10MB
stderr_logfile=/data/logs/stf_error.log
stderr_logfile_maxbytes=50MB
stderr_logfile_backups=5
stderr_capture_maxbytes=10MB