1 00:00:01,370 --> 00:00:06,050 ‫Now I want to talk about service and services. 2 00:00:07,550 --> 00:00:15,470 ‫A service is a program that runs in the background outside the interactive control of system users as 3 00:00:15,770 --> 00:00:16,880 ‫they lack an interface. 4 00:00:17,690 --> 00:00:25,670 ‫So this is an order to provide even more security because some of these services are crucial for the 5 00:00:25,670 --> 00:00:27,740 ‫operation of the operating system, right? 6 00:00:29,190 --> 00:00:37,170 ‫All these services work on several scripts, and these scripts are stored in slash Etsy slash in it 7 00:00:37,290 --> 00:00:38,340 ‫that de. 8 00:00:39,330 --> 00:00:45,930 ‫OK, so this INIT.D is a demon, which is the first process of the Linux system. 9 00:00:48,050 --> 00:00:53,960 ‫To manage Linux services, you can use service and system Ctrl commands. 10 00:00:55,070 --> 00:00:59,540 ‫You can learn the current status of services using the status all parameter. 11 00:01:01,320 --> 00:01:04,800 ‫Service and systemctl commands are used to start. 12 00:01:05,310 --> 00:01:10,350 ‫Check the status of and stop services if the service is correctly configured. 13 00:01:10,670 --> 00:01:13,950 ‫It'll start now in Linux. 14 00:01:13,950 --> 00:01:18,060 ‫There are several services that can be started and stopped manually in the system. 15 00:01:18,630 --> 00:01:25,410 ‫Some of those services are S.H., HDP Tours, Apache, these kinds of things. 16 00:01:27,810 --> 00:01:34,200 ‫So let's just try out and what we've learned so far, and let's start the Apache service, right? 17 00:01:35,280 --> 00:01:40,770 ‫So first list all the services under the slash ETSI slash in it d location. 18 00:01:41,970 --> 00:01:43,860 ‫Now these are all the services. 19 00:01:44,400 --> 00:01:45,900 ‫Let's check the status of them. 20 00:01:46,830 --> 00:01:49,170 ‫Run service status. 21 00:01:49,170 --> 00:01:49,500 ‫All. 22 00:02:00,760 --> 00:02:06,460 ‫OK, so plus signs mean that the service is active, the minus sign means it's not active. 23 00:02:07,930 --> 00:02:14,200 ‫If you do want to check the status of a specific service, for example, Apache Service use the system 24 00:02:14,200 --> 00:02:15,640 ‫CTL Status Command. 25 00:02:26,550 --> 00:02:29,490 ‫So as you can see, apache2 service is inactive. 26 00:02:33,280 --> 00:02:36,430 ‫You can also use the service command to see the status of the service. 27 00:02:43,320 --> 00:02:48,300 ‫So let's start the Apache Service Run Service, Apache to start. 28 00:02:50,770 --> 00:02:53,740 ‫This operation needs root privileges, so enter the password. 29 00:02:55,000 --> 00:02:56,740 ‫And let's check the status again. 30 00:03:02,570 --> 00:03:04,130 ‫All right, so you see, it's running now. 31 00:03:07,440 --> 00:03:15,630 ‫So Apache is the world's most popular cross-platform HTTP Web browser to deploy and run web applications 32 00:03:15,630 --> 00:03:22,050 ‫or web site, we can display the default page of the Apache server on the web browser. 33 00:03:26,290 --> 00:03:28,840 ‫So just to enter the IP address of the machine. 34 00:03:32,550 --> 00:03:35,580 ‫And yes, this is the default page of the Apache server. 35 00:03:36,450 --> 00:03:39,690 ‫It will show us that the Apache service is running.