Recently some people have been asking me how to start and stop services in linux CLI. This is a simple task to do, and once you know the tools to do it, it will be a breeze. The host system that I am using is Fedora, but this will work on other like distros like CentOS or RHEL.
The first way to do it is with the command service
So to start a service like SSH you would type:
service sshd start
Or for OpenVPN you would use:
service openvpn start
And to stop them you just add stop at the end of the same command:
service sshd stop
Now if you have recently installed a new service and you want it to start at boot you need to use the command ntsysv. I have attached a little video that should show how easy this is. But remember, you must be root to do this. You just check or uncheck the services that you want to start on boot. If you have any questions just leave them in the comments and I will try and answer them.
No comments:
Post a Comment