linux
docker学习命令
Legend 发表于2024-03-07 浏览150 评论0
设置docker代理
sudo nano /lib/systemd/system/docker.service
[Service] Environment="HTTP_PROXY=http://192.168.68.10:1080/" Environment="HTTPS_PROXY=http://192.168.68.10:1080/"
编辑文件后面加上这个代码
最后执行这个
sudo systemctl daemon-reload sudo systemctl restart docker.service
安装最新版青龙
docker run -dit \ -v $PWD/ql/data:/ql/data \ -p 5700:5700 \ --name qinglong \ --hostname qinglong \ --net=mynetwork \ --ip=172.18.0.2 \ --restart unless-stopped \ whyour/qinglong:latest
数据目录在
/root/ql/data
这是指定内网ip段的,可以删除
--net=mynetwork \ --ip=172.18.0.2 \
linux
Linux网络测速
Legend 发表于2017-11-03 浏览1854 评论0
Linux网络测速脚本很多时候需要对主机的网速进行评测了解上行与下行的速度。 登陆root用户执行下面命令curl -Lo speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
chmod +x speedtest-cli
./speedtest-cli参考:https://github.com/sivel/speedte