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 I have read many blogs and heard many peo...
question Recently I encountered a requirement to ...
Table of contents Build Vuex environment Summariz...
Introduction The meta tag is an auxiliary tag in ...
Build a simulation environment: Operating system:...
--When connecting to the database, the matching r...
1. Download address: mysql-8.0.17-winx64 Download...
Preface Recently, I found a pitfall in upgrading ...
Preface This article introduces the installation ...
Table of contents Common compression formats: gz ...
mysqldump command Introduction: A database backup...
First look at the effect: html <a href="#...
Table of contents I. Definition 2. Usage scenario...
Problem: The MySQL database crashed unexpectedly ...
An n-digit verification code consisting of number...