本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名原文链接~~~

实用命令

微信搜索 zze_coding 或扫描 👉 二维码关注我的微信公众号获取更多资源推送:


  • 不重启扫描硬盘
for dirname in `ls /sys/class/scsi_device/`; do echo 1 > /sys/class/scsi_device/$dirname/device/rescan ; done
for dirname in `ls /sys/class/scsi_host/`;do echo "- - -" > /sys/class/scsi_host/$dirname/scan; done
  • git 设置代理
git config --global http.proxy http://172.18.80.104:41091
git config --global https.proxy http://172.18.80.104:41091
git config --global --unset http.proxy
git config --global --unset https.proxy
  • Ubuntu apt 设置代理
echo 'Acquire::http::Proxy "http://172.18.80.104:41091";' > /etc/apt/apt.conf.d/10proxy
  • Linux 虚拟机使用代理
export http_proxy="http://172.18.80.104:41091"
export https_proxy="http://172.18.80.104:41091"
  • Ubuntu 快速安装 GlusterFS
add-apt-repository ppa:gluster/glusterfs-6
apt install glusterfs-client glusterfs-server -y
  • 清理 Ceph 盘
dmsetup ls
dmsetup remove ceph-**
  • 快速生成证书
openssl genrsa -out tls.key 2048
openssl req -new -x509 -key tls.key -out tls.cert -days 360 -subj /CN=www.zze.com
  • kubectl 设置命令补全
apt install bash-completion -y
kubectl completion bash > /usr/share/bash-completion/completions/kubectl \
&& . /usr/share/bash-completion/completions/kubectl
  • 一键安装 Docker
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

如果这篇文章对您有帮助,可点击下方链接分享给你的朋友们😋,如果遇到问题欢迎评论、留言~~~😇

评论

公众号:zze_coding

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×