1. 配置 sunlogin.service文件添加以下内容
sudo vim /etc/systemd/system/sunlogin.service
需要添加的内容 (记得保存)
[Unit]
Description=Sunlogin remote control service
After=network.target
[Service]
ExecStart=/usr/local/sunlogin/bin/sunloginclient
Restart=always
User=root
[Install]
WantedBy=multi-user.target
2. 启动
sudo systemctl enable sunlogin.service
sudo systemctl start sunlogin.service
3. 重启测试是否成功
sudo reboot