version:1.0.39
yum groupinstall "Development Tools"
yum install -y gcc g++ kernel-devel
yum install wget
wget https://nodejs.org/dist/v8.9.1/node-v8.9.1-linux-x64.tar.xz
tar -xvf node-v8.9.1-linux-x64.tar.xz
这个 nodejs 解压下来就可以使用了
cd /opt/
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.rpm"
rpm -ivh jdk-8u91-linux-x64.rpm
vi /etc/profile
#按"insert"键,Home键左边,Backspace右边的键
#增加:
export JAVA_HOME=/usr/java/jdk1.8.0_151
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
wget http://download.rethinkdb.com/centos/7/`uname -m`/rethinkdb.repo \
-O /etc/yum.repos.d/rethinkdb.repo
yum install rethinkdb
wget https://iweb.dl.sourceforge.net/project/graphicsmagick/graphicsmagick/1.3.26/GraphicsMagick-1.3.26.tar.gz
tar -zxvf GraphicsMagick-1.3.25.tar.gz
cd GraphicsMagick-1.3.25
./configure --prefix=/usr/local/gm
make
make install
wget https://github.com/zeromq/libzmq/releases/download/v4.2.2/zeromq-4.2.2.tar.gz
tar zxvf zeromq-4.2.2.tar.gz
cd zeromq-4.2.2
./configure --prefix=/usr/local/zeromq
make
make install
wget http://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz
tar -zxvf pkg-config-0.29.2.tar.gz
cd pkg-config-0.29.2
./configure --prefix=/usr/local/pkg-config --with-internal-glib
make
make intall
wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
tar -zxvf yasm-1.3.0.tar.gz
cd yasm-1.3.0
./configure --prefix=/usr/local/yasm
make
make install
wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.15.tar.gz
tar -zxvf libsodium-1.0.10.tar.gz
./augen.sh
./configure --prefix=/usr/local/libsodium
make
make install
wget https://github.com/google/protobuf/releases/download/v3.5.0/protobuf-cpp-3.5.0.tar.gz
tar -zxvf protobuf-cpp-3.5.0.tar.gz
cd protobuf-3.5.0
./configure --prefix=/usr/local/protobuf
make
make intall
ln -s /usr/local/gm/bin/* /usr/local/bin/
ln -s /usr/local/yasm/bin/* /usr/local/bin/
ln -s /usr/local/libsodium/bin/* /usr/local/bin/
ln -s /usr/local/protobuf/bin/* /usr/local/bin
export PKG_CONFIG_PATH=/usr/local/pkg-config
export PATH=$PKG_CONFIG_PATH:$PATH
npm install -g stf
[root@localhost bin]# ./stf doctor
INF/cli:doctor 10067 [*] OS Arch: x64
INF/cli:doctor 10067 [*] OS Platform: linux
INF/cli:doctor 10067 [*] OS Platform: 3.10.0-327.el7.x86_64
INF/cli:doctor 10067 [*] Using Node 8.9.1
INF/cli:doctor 10067 [*] Using ZeroMQ 4.2.2
INF/cli:doctor 10067 [*] Using RethinkDB 2.3.6
INF/cli:doctor 10067 [*] Using GraphicsMagick 1.3.26
INF/cli:doctor 10067 [*] Using ADB 1.0.39
INF/cli:doctor 10067 [*] Using ProtoBuf 3.5.0
./stf local
./stf local --public-ip 本地ip --allow-remote
比如将 win7 上一台手机添加到 STF 上,在 win7 执行:
adb nodaemon server -a -P 5037
在 centos 执行:
stf provider --name mikezhoudeMac-mini.local --min-port 7400 --max-port 7700 --connect-sub tcp://127.0.0.1:7114 --connect-push tcp://127.0.0.1:7116 --group-timeout 20000 --public-ip 172.31.11.171 --storage-url http://localhost:7100/ --adb-host 172.31.9.146 --adb-port 5037 --vnc-initial-size 600x800 --allow-remote
zmq.node 文件错误
转到 stf 工程根目录执行:
npm rebuild
libzmq.so.5 not found
cd /etc
vi /etc/ld.so.conf
#新增一行:
/usr/local/zeromq/lib
ldconfig
图形界面安装
yum groupinstall "GNOME Desktop"
startx
远程访问失败
可能是防火墙未关闭,关闭方法
#检查防火墙状态
firewall-cmd --state
#关闭防火墙
systemctl stop firewalld.service
#禁止开机启动
systemctl disable firewalld.service