常用指令

哪吒面板

1
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh  -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh

宝塔面板

1
if [ -f /usr/bin/curl ];then curl -sSO https://download.bt.cn/install/install_panel.sh;else wget -O install_panel.sh https://download.bt.cn/install/install_panel.sh;fi;bash install_panel.sh ed8484bec

xrayr

1
2
3
4
5
6
7
8
#官方
bash <(curl -Ls https://raw.githubusercontent.com/XrayR-project/XrayR-release/master/install.sh)

#一键对接
wget -N https://raw.githubusercontent.com/missovo/XrayR-script/main/install.sh && bash install.sh)

#OR
bash <(curl -Ls https://raw.githubusercontent.com/missovo/XrayR-script/main/install.sh)

BBR

1
bash <(curl -Lso- https://git.io/kernel.sh)

x-ui

1
bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)

git

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#配置同户名邮箱
git config --global user.name “xxx”
git config --global user.email “xxx@qq.com”

#克隆远程仓库
git clone https://github.com/xxxx.git

#添加当前目录文件
git add .

#提交说明
git commit -m '说明'

#更新到仓库
git push origin main

hexo

1
2
3
4
5
6
hexo g
hexo d
hexo clean
git add .
git commit -m "备份"
git push

服务器测速脚本

1
bash <(curl -Lso- https://git.io/superbench)

防火墙关闭

1
2
3
4
5
6
7
8
#centos
sudo -s
cd
systemctl stop firewalld.service
systemctl disable firewalld.service

#Ubuntu
sudo ufw disable