User Tools

Site Tools


services:starting_a_service

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
services:starting_a_service [2016/07/06 09:40] peterservices:starting_a_service [2019/12/04 20:41] (current) – removed peter
Line 1: Line 1:
-====== Services - Starting a service ====== 
- 
-The recommended method to use it at the top of this list, but if that does not work try the other methods. 
- 
-===== Using systemctl ===== 
- 
-**systemctl** only works on **systemd** based Ubuntu like version 16.04 LTS and above. 
- 
-<code bash> 
-systemctl start service_name.service 
-</code> 
- 
-Example: 
- 
-<code bash> 
-systemctl start apache2.service 
-</code> 
- 
- 
-===== Using Sys V ===== 
- 
-With **sysv-rc-conf** or **sysvconfig** under Debian or Ubuntu Linux. 
- 
-<code bash> 
-/etc/init.d/service_name  
-</code> 
- 
- 
-Example: 
- 
-<code bash> 
-/etc/init.d/apache2 
-</code> 
- 
-===== Using Service ===== 
- 
-**service** works in most Linux distributions including Debian and Ubuntu. 
- 
-<code bash> 
-service service_name start 
-</code> 
- 
- 
-Example: 
- 
-<code bash> 
-service apache2 start 
-</code> 
- 
- 
-===== Using Upstart ===== 
- 
-**upstart** only works on certain version of Ubuntu. 
- 
-<code bash> 
-invoke-rc.d service_name start 
-</code> 
- 
-Example: 
- 
-<code bash> 
-invoke-rc.d apache2 start 
-</code> 
  
services/starting_a_service.1467798025.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki