Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Docker httpd (pid 1) already running

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

The reason for the analysis is that the httpd.pid is not deleted after the container is restarted, which results in the detection of the apache service running during restart.

Error

Httpd (pid 1) already runninghttpd (pid 1) pid (pid 1) already runninghttpd (already runninghttpd 1) already runninghttpd (already runninghttpd 1) Runninghttpd (pid 1) already runningroot@ubuntu:/var/lib/docker/overlay2#docker container inspect 7e336d136e827e8b3daffbd80363d0daf4d0a40a54c5dfda85727bfdf1e9f7e5

Search

Root@ubuntu:/var/lib/docker/overlay2# find. /-name apache2.pid

Delete

Root@ubuntu:/var/lib/docker/overlay2# rm-rf. / 92cce34fc1ca4585ec25d729949f573a92b39ac0dd7f2fc8cc42b5a17016afb4/diff/run/apache2/apache2.pid

You can start the container.

If container choreography is used, please refer to the operation

Https://forums.docker.com/t/httpd-already-running/33397

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report