Home > System Tutorial > LINUX > body text

How to install custom system services in CentOS 7?

WBOY
Release: 2024-01-04 15:25:43
forward
1262 people have browsed it

Centos7 startup items are divided into two types: system and user

For example, mysql, which can be run without logging in, is system type and is placed under /usr/lib/systemd/system. On the contrary, programs that can only be run after the user logs in are stored in the user (user).

If I customize a system service called mytest.server, the file format can refer to other files in the system directory.

Execute systemctl enable mytest.service to set auto-start at boot

systemctl start mytest.service Start the service

systemctl status mytest.service View status

View boot items

systemctl list-unit-files

The above is the detailed content of How to install custom system services in CentOS 7?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!