1. Take nginx as an example Nginx installed using the yum command Systemd service files end with .service. For example, if you want to set up nginx for startup, if you use the yum install command to install it, the yum command will automatically create the nginx.service file. Just use the command: systemcel enable nginx.service //Start automatically at boot Compile and install using source code 1. Manually create the nginx.service service file. and put it into /lib/systemd/system folder. The content of nginx.service is as follows:
PS: Note that the above ExecStart/ExecReload/ExecStop must be based on your own Corresponding key description
Save and exit. 2. Set the startup systemctl enable nginx.service Other service commands
The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Summary of Mysql exists usage
>>: Compatibility with the inline-block property
Table of contents 1. Introduction to jQuery 2. jQ...
This article mainly introduces the example of rea...
Since PHP7 came out, as a fan of the latest versi...
【Foreword】 Both Vue and React's CSS modular s...
This article shares the installation steps of MyS...
We can view the installation path of mysql throug...
Use the mysql command to connect to the MySQL ser...
As the number of visits increases, the pressure o...
Copy code The code is as follows: <a href=# ti...
The one above shows the system time, and the one ...
Have you ever had the need to compute a very larg...
This situation usually occurs because the Chinese...
Table of contents Introduction Mirror repository ...
1. Time formatting and other methods It is recomm...
VMware Workstation is a powerful desktop virtual ...