gistfile1.txt 重命名为 pdns-install.sh
@@ -4,6 +4,5 @@ curl -fsSL https://repo.powerdns.com/FD380FBB-pub.asc | gpg --dearmor -o /etc/ap | |||
4 | 4 | apt update && apt install -y pdns-server pdns-backend-mysql mariadb-server mariadb-client | |
5 | 5 | systemctl disable systemd-resolved.service | |
6 | 6 | systemctl stop systemd-resolved.service | |
7 | - | journalctl --follow _SYSTEMD_UNIT=pdns.service | |
8 | 7 | service mysql stop && service pdns stop | |
9 | 8 | ssh-keygen -t ed25519 |
gistfile1.txt(file created)
@@ -0,0 +1,9 @@ | |||
1 | + | apt update && apt install -y curl gpg tmux htop rsync | |
2 | + | echo "deb [arch=amd64] http://repo.powerdns.com/debian bullseye-auth-46 main" > /etc/apt/sources.list.d/pdns.list | |
3 | + | curl -fsSL https://repo.powerdns.com/FD380FBB-pub.asc | gpg --dearmor -o /etc/apt/trusted.gpg.d/pdns.gpg | |
4 | + | apt update && apt install -y pdns-server pdns-backend-mysql mariadb-server mariadb-client | |
5 | + | systemctl disable systemd-resolved.service | |
6 | + | systemctl stop systemd-resolved.service | |
7 | + | journalctl --follow _SYSTEMD_UNIT=pdns.service | |
8 | + | service mysql stop && service pdns stop | |
9 | + | ssh-keygen -t ed25519 |
power-dns-install.sh(file created)
@@ -0,0 +1,8 @@ | |||
1 | + | apt update && apt install curl gpg tmux htop -y | |
2 | + | nano /etc/apt/sources.list.d/pdns.list | |
3 | + | deb [arch=amd64] http://repo.powerdns.com/debian bullseye-auth-46 main | |
4 | + | curl -fsSL https://repo.powerdns.com/FD380FBB-pub.asc | gpg --dearmor -o /etc/apt/trusted.gpg.d/pdns.gpg | |
5 | + | apt update && apt install pdns-server pdns-backend-mysql mariadb-server mariadb-client -y | |
6 | + | systemctl disable systemd-resolved.service | |
7 | + | systemctl stop systemd-resolved | |
8 | + | journalctl --follow _SYSTEMD_UNIT=pdns.service |