LinuxCLI

VI:

%s/源字符串/目的字符串/gc

chmod u+x app.js; chmod a+x app.js

rm -rf dir

Linux:

sudo yum install unzip

mkdir /data/tools -p && cd /data/tools

wget https://nodejs.org/dist/v16.14.0/node-v16.14.0-linux-x64.tar.xz

tar -xvJf node-v16.14.0-linux-x64.tar.xz

mv node-v16.14.0-linux-x64 /usr/local/node-v16.14.0

sudo ln -s /usr/local/node-v16.14.0/bin/npm /usr/local/bin/npm

sudo ln -s /usr/local/node-v16.14.0/bin/node /user/local/bin/node

wget https://github.com/ZigZagExchange/market-maker/archive/refs/heads/master.zip

unzip master.zip

cd market-maker-master/

npm install

mv config.json.example config.json

vi config.json: 替换掉cryptowatch的api key和自己的私钥。

scp scp ./test.txt root@45.76.232.173:/home

Github:

create ras keys for ssh:

cd ~/.ssh

ssh-keygen -b 1024 -t rsa -f id_rsa -P ""

生成两个文件.把私钥加入本地电脑.ssh-add ~/.ssh/id_rsa

把public key 上传到远程电脑上:

cd ~/.ssh, touch authorized_keys, ’chmod u-w authorized_keys’, 添加进去.

或者把public key设置到github账户中.

测试账户 git账户. ssh -T git@github.com

Subscribe to sanmazi
Receive the latest updates directly to your inbox.
Verification
This entry has been permanently stored onchain and signed by its creator.