使用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

1.安装依赖
centos:

yum -y install gcc zlib-devel openssl-devel readline-devel ncurses-devel

ubuntu:

apt-get install build-essential

2.下载SoftEther

wget http://www.softether-download.com/files/softether/v4.27-9668-beta-2018.05.29-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.27-9668-beta-2018.05.29-linux-x64-64bit.tar.gz

3.解压SoftEther

tar zxf softether-vpnserver-v4.27-9668-beta-2018.05.29-linux-x64-64bit.tar.gz

4.打开文件夹

cd vpnserver

5.安装SoftEther

make

6.安装过程提示选择全部选1然后回车即可
7.启动vpnserver

./vpnserver start

8.设置

./vpncmd

9.选1 Management of VPN Server or VPN Bridge然后回车
10.后面需要选择地址和端口。默认443端口,如果需要修改为5555端口,可以输入 你的公网ip:5555
11.HUB名称默认回车
12.最后输入ServerPasswordSet命令设置远程管理密码,确认密码后就可以通过Windows版的SoftEther VPN Server Manager远程管理了

清华大学出版社

官网的电子课件的密码规则如下:

1、先后六位两两相加试一下(例:9787302224464,后六位两两相加,2+2=4 4+4=8 6+4=10,密码为4810)

2、tup+后六位两两相加

3、倒数第6位到倒数第2位(例:9787302336358,密码为33635)

4、后六位两两相加不足4位的,密码前加2