宝塔国内版

Centos安装命令:

1
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
1
2
<!-- more -->
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh

卸载命令

1
2
wget http://download.bt.cn/install/bt-uninstall.sh
sh bt-uninstall.sh

bt工具箱 ,7.7.0版去强登后ssl申请好像有点问题,进去输入10降到7.6.0,输入3和1,去除强登

1
wget -O btpanel_tools.sh https://download.btpanel.cm/tools/btpanel_tools.sh && bash btpanel_tools.sh

aaPanel面板安装

Centos/Debian/Fedora:

1
wget -O install.sh http://www.aapanel.com/script/install-en.sh && bash install.sh

Ubuntu:

1
wget -O install.sh http://www.aapanel.com/script/install-ubuntu-en.sh && sudo bash install.sh


1
2
3
4
5
iptables -I INPUT -p tcp --dport 80 -j DROP
iptables -I INPUT -p tcp --dport 443 -j DROP
<!-- more -->
curl https://www.cloudflare.com/ips-v4awk '{print "iptables -I INPUT -s "$0" -p tcp --dport 80 -j ACCEPT"}'sh
curl https://www.cloudflare.com/ips-v4awk '{print "iptables -I INPUT -s "$0" -p tcp --dport 443 -j ACCEPT"}'sh

ipV6

1
2
3
4
ip6tables -I INPUT -p tcp --dport 80 -j DROP
ip6tables -I INPUT -p tcp --dport 443 -j DROP
curl https://www.cloudflare.com/ips-v6awk '{print "ip6tables -I INPUT -s "$0" -p tcp --dport 80 -j ACCEPT"}'sh
curl https://www.cloudflare.com/ips-v6awk '{print "ip6tables -I INPUT -s "$0" -p tcp --dport 443 -j ACCEPT"}'sh

firewall版本:

1
2
3
4
5
6
7
firewall-cmd --permanent --remove-port=80/tcp
firewall-cmd --permanent --remove-port=443/tcp
firewall-cmd --zone=public --remove-port=80/tcp --permanent
firewall-cmd --zone=public --remove-port=443/tcp --permanent
curl https://www.cloudflare.com/ips-v4awk '{print "firewall-cmd --permanent --add-rich-rule=\"rule family=\"ipv4\" source address=\""$0"\" port protocol=\"tcp\" port=\"80\" accept\""}'sh
curl https://www.cloudflare.com/ips-v4awk '{print "firewall-cmd --permanent --add-rich-rule=\"rule family=\"ipv4\" source address=\""$0"\" port protocol=\"tcp\" port=\"443\" accept\""}'sh
systemctl restart firewalld.service


1
2
3
4
5
6
7
8
9
10
11
12
13
14
  
docker run -dit \
-v $PWD/ql/config:/ql/config \
-v $PWD/ql/log:/ql/log \
-v $PWD/ql/db:/ql/db \
-v $PWD/ql/repo:/ql/repo \
<!-- more -->
-v $PWD/ql/raw:/ql/raw \
-v $PWD/ql/scripts:/ql/scripts \
-p 5555:5700 \
--name qinglong \
--hostname qinglong \
--restart unless-stopped \
whyour/qinglong:latest


CentOS系统执行以下命令安装:

1
yum install screen

Debian/Ubuntu系统执行以下命令安装:

1
apt-get install screen

如何使用screen命令
首先创建screen会话,执行以下命令:

1
screen -S lnmp
阅读全文 »


萌咖脚本(debian10):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
全自动安装默认
用户:root
密码: MoeClub.org
某些特殊的服务商不适用此脚本,比如 cloudcone
已测试服务商:腾讯云、阿里云
# Debian/Ubuntu:
apt-get update
<!-- more -->
apt-get install -y xz-utils openssl gawk file
# RedHat/CentOS:
yum update
yum install -y xz openssl gawk file
wget https://moeclub.org/attachment/LinuxShell/InstallNET.sh
chmod a+x InstallNET.sh
bash InstallNET.sh -d 10 -v 64 -a

系统选择详解:

1
2
3
4
5
6
7
8
# 全自动安装Ubuntu 16.04 x64: 
bash InstallNET.sh -u 16.04 -v 64 -a
# 全自动安装Debian 9 x64:
bash InstallNET.sh -d 9 -v 64 -a
# 全自动安装Debian 10 x64(中科大镜像源,用于国内服务器):
bash InstallNET.sh -d 10 -v 64 -a --mirror 'http://mirrors.ustc.edu.cn/debian/'
# 全自动安装CentOS 6.7 x64:
bash InstallNET.sh -c 6.7 -v 64 -a

腾讯云轻量 DD win

1
2
3
apt-get update
apt-get install -y xz-utils openssl gawk file wget screen && screen -S os
wget --no-check-certificate -qO InstallNET.sh 'https://tutu.bid/bash/InstallNET.sh' && bash InstallNET.sh -dd 'https://tutu.bid/os/dd/win10ltsc_x64.tar.gz'

腾讯云改回内网软件源

1
cat 


安装AdGuardHome

1
2
3
4
5
6
7
8
9
10
11
12
13
wget https://static.adguard.com/adguardhome/release/AdGuardHome_linux_arm.tar.gz
#进入AdGuardHome目录
cd AdGuardHome
<!-- more -->
#放行3000端口(AdGuardHome初始化需要使用)
#firewalld放行3000端口
firewall-cmd --zone=public --add-port=3000/tcp --permanent
firewall-cmd --reload
#iptables放行3000端口
iptables -A INPUT -p tcp --dport 3000 -j ACCEPT
service iptables save
#启动AdGuard Home
./AdGuardHome -s install

下面是控制服务可能需要的其他命令。

1
2
3
4
5
./AdGuardHome -s uninstall- 卸载 AdGuard 家庭服务。
./AdGuardHome -s start- 启动服务。
./AdGuardHome -s stop- 停止服务。
./AdGuardHome -s restart- 重新启动服务。
./AdGuardHome -s status- 显示当前服务状态
0%