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
Preface Those who have played with MySQL must be ...
Two ways to enable proxy React does not have enca...
Mysql 8.0 installation problems and password rese...
1. Block-level element: refers to the ability to e...
Install 8.0.13 based on MySQL 6.1.3. MySQL 8.0.13...
This article example shares the specific code of ...
Preface The string types of MySQL database are CH...
Table of contents umask Umask usage principle 1. ...
Since I have changed to a new computer, all the e...
This article uses an example to describe how to s...
I am going to review Java these two days, so I wr...
This article uses examples to describe the add, d...
Compared with the old life cycle Three hooks are ...
1. Type introduction 1.1 Domain-based virtual hos...
Table of contents I've been learning React re...