官方文档: https://github.com/openstf/stf
参考帖子: https://testerhome.com/topics/2988
通过 nvm https://github.com/creationix/nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
vim .zshrc
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
source .zshrc
nvm install 8.15.0
官网 https://www.rethinkdb.com/docs/install/ubuntu/
source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install rethinkdb
遇到一波nginx报错 sudo service apache2 stop
下载地址 http://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/
wget https://jaist.dl.sourceforge.net/project/graphicsmagick/graphicsmagick/1.3.31/GraphicsMagick-1.3.31.tar.gz
tar -zxvf GraphicsMagick-1.3.31.tar.gz
cd GraphicsMagick-1.3.31
./configure
make
sudo make install
方法一 下载地址 http://download.zeromq.org/
wget https://ia600405.us.archive.org/21/items/zeromq_4.1.4/zeromq-4.1.4.tar.gz
tar -zxvf zeromq-4.1.4.tar.gz
cd zeromq-4.1.4
./configure
make
sudo make install
sudo ldconfig
方法二 http://zeromq.org/intro:get-the-software
sudo echo "deb http://download.opensuse.org/repositories/network:/messaging:/zeromq:/release-stable/Debian_9.0/ ./" >> /etc/apt/sources.list
wget https://download.opensuse.org/repositories/network:/messaging:/zeromq:/release-stable/Debian_9.0/Release.key -O- | sudo apt-key add
sudo apt-get install libzmq3-dev
下载地址 https://github.com/protocolbuffers/protobuf/releases
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.6.1/protobuf-all-3.6.1.tar.gz
tar -zxvf protobuf-all-3.6.1.tar.gz
cd protobuf-all-3.6.1
./configure --prefix=/usr/local/protobuf
make
#make check
sudo make install
环境变量
sudo vim /etc/profile
添加两行:
export PATH=$PATH:/usr/local/protobuf/bin/
export PKG_CONFIG_PATH=/usr/local/protobuf/lib/pkgconfig/
source /etc/profile
~/.zshrc中也添加上面两行
source ~/.zshrc
动态链接库
cd /etc/ld.so.conf.d/
sudo vi protobuf.conf
添加一行:
/usr/local/protobuf/lib
ldconfig
确认版本 protoc --version
下载地址 http://yasm.tortall.net/Download.html
方法一
sudo apt-get install yasm
方法二
wget -O yasm-1.3.0.tar.gz https://github.com/yasm/yasm/archive/v1.3.0.tar.gz
tar zxvf yasm-1.3.0.tar.gz
cd yasm-1.3.0
./configure --prefix=/usr/local/yasm
make
sudo make install
环境变量
export PATH="$PATH:/usr/local/yasm/bin"
/etc/profile 和 ~/.zshrc文件末尾添加export PATH="$PATH:/usr/local/yasm/bin"
source /etc/profile
source ~/.zshrc
sudo apt-get install pkg-config
npm install -g stf
stf doctor
rethinkdb
PS:可以指定缓冲区大小和端口,终端执行:rethinkdb --bind all --cache-size 8192 --http-port 8090
指定ip和允许远程连接启动:
stf local --public-ip xx.xx.xx.xx --allow-remote
访问:
http://localhost:7100
连接
adb connect ip:port
断开
adb disconnect ip:port
1、插上魅族手机始终连不上