![]() Loaded: loaded (/usr/lib/systemd/system/rvice enabled vendor preset: disabled) Active: inactive (dead) Now, let’s see the status ~]# systemctl status php-fpmphp Let’s enable php-fpm to start on boot by using systemctl ~]# systemctl enable php-fpmĬreated symlink from /etc/systemd/system//rvice to /usr/lib/systemd/system/rvice. Loaded: loaded (/usr/lib/systemd/system/rvice disabled vendor preset: disabled)Īs you can see the status is disabled which means it’s not configured to start on boot. ![]() Most of the software like Apache, PHP, MySQL, Nginx scripts are added in services when you install it.įirst thing first, let’s see the status of php-fpm (this assume you already have scripts in /usr/lib/systemd/system/) ~]# systemctl status php-fpm The procedure to configure services on boot in RHEL 7 is slightly different than RHEL 6. In case you need to disable the auto-start service then you can use the following commands chkconfig httpd offĬhkconfig -del httpd RHEL or CentOS 7.x/8.x That’s all! httpd script will be called to start services on Linux boot. Confirm script is added successfully with -list.Add script to start on boot using chkconfig with -add parameter.We will use chkconfig utility which is available default on Linux or CentOS. Create or copy your script under /etc/init.d/.Become a root user on your Linux server.You can keep any script file name, and here I’ve kept httpd In the following example, I have taken an Apache HTTP server, but the procedure remains the same for any other services you wish to start at boot in Red Hat Enterprise Linux (RHEL) or CentOS 6 version. The following examples are for two popular distros tested on DigitalOcean servers. Unexpected due to hardware/kernel issueīy doing the right configuration, you don’t have to start them manually each time you reboot.There could be various reasons for server reboot, including the following. ![]() One of the essential for a system administrator to know is how to configure service at boot, so when a server gets a reboot, they start automatically.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |