systemctl configuration file for timer

Article directory systemctl configuration file for timer Advantages of systemd.timer mission requirements The setting value of sname.timer Time used for OnCalendar An example of a loop actually running A case for running on a fixed date systemctl configuration file for timer Sometimes, you want to execute certain services periodically or after startup, or how long […]

systemctl configuration file for service type

Article directory systemctl configuration file for service type Introduction to related directories of systemctl configuration files Introduction to the setting items of the systemctl configuration file Two instances of vsftpd running Multiple repeated setting methods: take getty as an example Reduce the number of ttys from 6 to 4 Temporarily add vsftpd to port 1212 […]

Install kafka on Linux, configure to enter systemctl and set boot self-start – super detailed version (with a little simplification)

Install kafka Enter the kafka mirror resource station: http://archive.apache.org/dist/kafka/ Download the desired version of kafka First make sure that the java environment exists on the machine to be installed If not, you need to download and install java The zookeeper that comes with kafka used here does not need to download additional zookeeper After uploading […]

The systemctl command fails to set boot self-start

1. Case phenomenon I published an article “One-key Deployment and Installation of Nginx with Shell Script” on March 31, which introduced how to install Nginx with one-key shell script I executed the Nginx boot self-start command in my script. When I used the systemctl status nginx command to review, I found that Nginx service setting […]

[Solved] Job for jenkins.service failed because the control process exited with error code. See “systemctl st

When installing Jenkins, the error message is: Job for jenkins.service failed because the control process exited with error code. See “systemctl status jenkins.service” and “journalctl -xe” for details. When I saw this error, I tried various ways to solve it, but it didn’t work, including: Create a soft link to the java environment ln -s […]

[Solved] cenos7 Job for network.service failed. See ‘systemctl status network.service’ and ‘journalctl -xn’ problem

Found the answer I needed on a blog, which is simply to close the network service, then load the service, and then restart it, [root@CT71 ~]# systemctl status network.service ● network.service – LSB: Bring up/down networking Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled) Active: failed (Result: exit-code) since Fri 2017-08-04 08:20:31 CST; 1min 44s ago […]

[Solved] Use docker to build Ubuntu, a solution that still cannot use the systemctl command with –privileged at startup

I built Ubuntu 18.04 locally, and then started docker to build an Ubuntu system. When running, I used the –privileged parameter to append /sbin/init and an error was reported. Find a solution online: https://linuxamination.blogspot.com/2020/11/ubuntu-docker-container-error-system.html After use, you can indeed use the systemctl command in the Ubuntu system started by docker Solution: Pull the following images […]

[Solved] Job for nginx.service failed because the control process exited with error code. See “systemctl stat

Nginx exception information: Job for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xe” for details. This is a mistake when I configured my own SSL certificate. There are quite a lot of posts on Baidu on the Internet, and I have stepped on a lot of […]

[Solved] k8s running the container executes systemctl error Failed to get D-Bus connection: Operation not permitted

Questions Failed to get D-Bus connection: Operation not permitted Solution Add parameter Specify securityContext.privileged=true in the .yaml file to give container permissions. Using this parameter, the root in the container has the real root authority, otherwise the root in the container is just an external ordinary user authority. cat pod1.yaml apiVersion: v1 kind: Pod metadata: […]

[Solved] Running the service with systemctl in the container reports an error: Failed to get D-Bus connection: Operation not permitted (solution)

[root@d88483a78719 profile.d]# systemctl start vsftpd.service Failed to get D-Bus connection: Operation not permitted [root@d88483a78719 profile.d]# Analyze the reasons: The design concept of Docker is not to run background services in the container. The container itself is an independent main process on the host, and it can also be indirectly understood as the application process running […]