
1、服务器搭建用到frcp代理,frcp搭建过程不再赘述,单独启动/home/natfrp/frpc -c /home/natfrp/frpc.ini 均可正常启动运行,但如下图在systemd中创建脚本并用systemctl start frpc会报错(code=exited, status=203/EXEC),排查过程繁琐这里做个记录方便后期自行查阅
2、其实很简单,是SELinux的锅,解决方法关闭SELinux,永久关闭selinux:

- getenforce检查SELinux是否开启,上图为关闭状态
- .
powershell vim /etc/sysconfig/selinuxSELINUX=enforcing
替换为SELINUX=disabled

- 保存后reboot重启即可
3、如果不想关闭SELinux,可以参考此处文献

总结:其实从上述也可看出不止frcp可以如此解决,只要是systemctl start **.server 出现 (code=exited, status=203/EXEC) 类似报错,都可以关闭SELinux解决。
文章讲述了在服务器搭建过程中,使用frcp代理启动时遇到systemd启动脚本错误的问题,经排查发现是由于SELinux启用导致。提供了解决方案,包括关闭SELinux或临时禁用。
591

被折叠的 条评论
为什么被折叠?



