Difference between revisions of "Linux/Services"
From Iveze
< Linux
(Tag: VisualEditor) |
(Tag: VisualEditor) |
||
Line 1: | Line 1: | ||
− | Services | + | The point of having a server is to run some services on them. Services are programs are always on, even after a reboot. |
+ | === Start a service === | ||
+ | Centos 6 | ||
+ | /etc/init.d/<service name> start | ||
+ | Centos 7 | ||
+ | systemctl start <service name> | ||
+ | Other useful service options are: status, stop, restart | ||
+ | |||
+ | === Make a service permanent === | ||
+ | Centos 6 | ||
+ | chkconfig <service name> on | ||
+ | Centos 7 | ||
+ | systemctl enable <service name> | ||
{{Special:PrefixIndex/{{FULLPAGENAME}}/ |hideredirects=1 |stripprefix=1}} | {{Special:PrefixIndex/{{FULLPAGENAME}}/ |hideredirects=1 |stripprefix=1}} | ||
[[Category:Linux]] | [[Category:Linux]] |
Revision as of 12:33, 11 June 2015
The point of having a server is to run some services on them. Services are programs are always on, even after a reboot.
Start a service
Centos 6
/etc/init.d/<service name> start
Centos 7
systemctl start <service name>
Other useful service options are: status, stop, restart
Make a service permanent
Centos 6
chkconfig <service name> on
Centos 7
systemctl enable <service name>
Automount | Ups |