2021年12月

使用systemctl来控制启动

sudo vim /lib/systemd/system/frpc.service

在frps.service里写入以下内容

[unit]
Description=frpc
After=multi-user.targe

[Service]
TimeoutStartSec=30
ExecStart=/root/frpc/frpc -c /root/frpc/frpc.ini
ExecStop=/bin/kill $MAINPID

[Install]
WantedBy=multi-user.target

更新服务文件

sudo systemctl daemon-reload

开启

sudo systemctl start frpc

关闭

sudo systemctl stop frpc

重启

sudo systemctl restart frpc

查看状态

sudo systemctl status frpc

设置开机启动

sudo systemctl enable frpc

设置开机不启动

sudo systemctl disable frpc

改root 密码登录

echo root:freenn |sudo chpasswd root
sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
sudo service sshd restart

密码:freenn 然后别忘记用passwd命令重新设置密码

甲骨文一键DD纯净系统命令测试环境:ubuntu 20.4
全自动安装默认root密码: MoeClub.org 指定密码参数后面加 -p 密码

centos 6:
bash <(wget --no-check-certificate -qO- 'https://git.io/JeiRm') -c 6.9 -v 64 -a --mirror 'http://mirror.centos.org/centos'
debian 7:
bash <(wget --no-check-certificate -qO- 'https://git.io/JeiRm') -d 7 -v 64 -a
debian 8:
bash <(wget --no-check-certificate -qO- 'https://git.io/JeiRm') -d 8 -v 64 -a
debian 9:
bash <(wget --no-check-certificate -qO- 'https://git.io/JeiRm') -d 9 -v 64 -a
debian 10:
bash <(wget --no-check-certificate -qO- 'https://git.io/JeiRm') -d 10 -v 64 -a
debian 11:
bash <(wget --no-check-certificate -qO- 'https://git.io/JeiRm') -d 11 -v 64 -a
ubuntu 14.04:
bash <(wget --no-check-certificate -qO- 'https://git.io/JeiRm') -u 14.04 -v 64 -a
ubuntu 16.04:
bash <(wget --no-check-certificate -qO- 'https://git.io/JeiRm') -u 16.04 -v 64 -a
ubuntu 18.04:
bash <(wget --no-check-certificate -qO- 'https://git.io/JeiRm') -u 18.04 -v 64 -a
ubuntu 20.04:
bash <(wget --no-check-certificate -qO- 'https://git.io/JeiRm') -u 20.04 -v 64 -a
甲骨文ARM:
bash <(wget --no-check-certificate -qO- 'https://git.io/JLyvq') -d 10 -v 64 -a