1.下载锐捷,解压后给rjsupplicant.sh 添加可执行权限
2.创建一个 systemd 启动脚本并将其放在 /etc/systemd/system/
目录中,内容如下
# ruijie.service
[Unit]
Description=Run ruijie
After=network.target
[Service]
ExecStart=/home/rjsupplicant/rjsupplicant.sh -u stuxxxx -p passwordxxxx -d 0
ExecStop=/home/rjsupplicant/rjsupplicant.sh -q
ExecReload=/home/rjsupplicant/rjsupplicant.sh -u stuxxxx -p passwordxxxx -d 0
Restart=on-failure
KillMode=control-group
[Install]
WantedBy=multi-user.target
3.运行以下命令启动服务
systemctl daemon-reload
systemctl enable ruijie.service
systemctl start ruijie #启动锐捷
systemctl status ruijie #查看锐捷状态
![3e399bc2ac7536ea7feafd6a09299bbd.png](https://i-blog.csdnimg.cn/blog_migrate/418b237d10ea4c51ff3a792d61efc0ba.jpeg)
4.重启检查是否启动
reboot
ps aux|grep rjsupplicant
ping www.baidu.com