无法 运行 并行 apache httpd 实例

Unable to run parallel apache httpd instances

我在我的 apache 服务器中创建了 2 个配置文件 httpd.conf 和 httpd1.conf。为了运行两个实例吧。

当我尝试启动两个 apache 实例时

httpd -f /etc/httpd/conf/httpd1.conf -k start

httpd -f /etc/httpd/conf/httpd.conf -k start只有一个实例启动。我能够 运行 一审或二审。但是无法 运行 它们并行。
我收到的错误 httpd (pid 51415) already running

作为服务器,在 运行 任何应用程序的多个实例中应该没有任何问题。

好的,我发现问题了。每个 httpd 服务实例都将进程 ID 的值存储在单独的文件中。为了 运行 每个实例都需要生成一个新的进程 ID。进程 ID 文件的位置在 httpd.conf

中定义