在systemd启用centos 7容器中运行squid代理服务

在systemd启用centos 7容器中运行squid代理服务

我无法在启用了 systemd 的 centos 7 容器中启动鱿鱼服务。

我能够安装鱿鱼包。

这是我在开始服务之前得到的:

[root@c65bf5111b85 /]# systemctl status squid
● squid.service - Squid caching proxy
   Loaded: loaded (/usr/lib/systemd/system/squid.service; disabled; vendor preset: disabled)
   Active: inactive (dead)

然后当我执行 systemctl start squid 时,这就是我得到的:

[root@c65bf5111b85 /]# systemctl status squid
● squid.service - Squid caching proxy
   Loaded: loaded (/usr/lib/systemd/system/squid.service; disabled; vendor preset: disabled)
   Active: inactive (dead)

Apr 28 23:46:23 c65bf5111b85 squid[269]: Squid Parent: will start 1 kids
Apr 28 23:46:23 c65bf5111b85 squid[269]: Squid Parent: (squid-1) process 273 started
Apr 28 23:46:23 c65bf5111b85 systemd[1]: Started Squid caching proxy.
Apr 28 23:46:23 c65bf5111b85 squid[276]: Squid Parent: will start 1 kids
Apr 28 23:46:23 c65bf5111b85 squid[276]: Squid Parent: (squid-1) process 280 started
Apr 28 23:46:23 c65bf5111b85 squid[269]: Squid Parent: (squid-1) process 273 exited with status 0
Apr 28 23:46:23 c65bf5111b85 squid[286]: Squid Parent: will start 1 kids
Apr 28 23:46:23 c65bf5111b85 squid[286]: Squid Parent: (squid-1) process 290 started
Apr 28 23:46:23 c65bf5111b85 squid[276]: Squid Parent: (squid-1) process 280 exited with status 0
Apr 28 23:46:23 c65bf5111b85 squid[283]: squid: No running copy
[root@c65bf5111b85 /]#

我期待该服务启动,因为我能够安装并启动 httpd、nginx、mariadb 服务。

相关内容