Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
系统重新启动后Linux中的服务自动启动_Linux_Service_Startup - Fatal编程技术网

系统重新启动后Linux中的服务自动启动

系统重新启动后Linux中的服务自动启动,linux,service,startup,Linux,Service,Startup,大家好,在CentOS(Linux)系统引导时,如何让服务自动启动,需要一些帮助。特别是我说的tomcat和radius,我有脚本,但不知道放在哪里,也许你会建议? 谢谢您需要编辑的文件是/etc/rc.d/rc.local(对于基于Debian的系统是/etc/rc.local) 只需添加: /路径/to/yourScript.sh 保存文件并重新启动! 本论坛回复中的更多详细信息:

大家好,在CentOS(Linux)系统引导时,如何让服务自动启动,需要一些帮助。特别是我说的tomcat和radius,我有脚本,但不知道放在哪里,也许你会建议?
谢谢

您需要编辑的文件是/etc/rc.d/rc.local(对于基于Debian的系统是/etc/rc.local) 只需添加:

/路径/to/yourScript.sh

保存文件并重新启动! 本论坛回复中的更多详细信息: