命令:
cat id_rsa.pub | ssh target_host "sudo tee -a /home/tom/.ssh/authorized_keys"
| // from http://stackoverflow.com/questions/36934749/how-to-get-the-output-of-a-spawned-child-process-in-node-js | |
| var spawn = require('child_process').spawn; | |
| // Create a child process | |
| var child = spawn('dd', ['if=/dev/zero','of=/tmp/test1.img','bs=100m','count=1','conv=noerror,sync']); | |
| child.stdout.on('data', | |
| function(data) { | |
| console.log('ls command output: ' + data); | |
| }); |
| 1001 git init | |
| 1003 git remote add origin [email protected]:YourUserName/ProjectName.git | |
| 1004 git fetch origin | |
| 1006 git checkout master |
| { | |
| "$schema": "https://vega.github.io/schema/vega/v5.json", | |
| "width": 400, | |
| "height": 200, | |
| "data": [ | |
| { | |
| "name": "table", | |
| "values": [ | |
| {"date": "2020-08-01", "count": 2109}, | |
| {"date": "2020-08-02", "count": 1201}, |
| { | |
| "$schema": "https://vega.github.io/schema/vega-lite/v4.json", | |
| "data": { | |
| "values":[ | |
| {"date": "2020-08-01", "retention":2341}, | |
| {"date": "2020-08-02", "retention":1234}, | |
| {"date": "2020-08-03", "retention":1101}, | |
| {"date": "2020-08-04", "retention":998}, | |
| {"date": "2020-08-05", "retention":543}, | |
| {"date": "2020-08-06", "retention":589}, |
服务器端:
iperf3 -s
客户端:
iperf3 -u -c tank -b 100M