squid配置多实例运行,指定配置文件启动无效

新手上路,请多包涵

创建了新的个配置文件
/etc/squid/squid443.conf

文件内添加了
http_port 443
pid_filename /usr/local/squid/var/run/squid443.pid

默认 squid.conf 端口为 543

然后敲命令指定新配置文件
# squid -f /etc/squid/squid443.conf
# systemctl start squid
# netstat -nlt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:543 0.0.0.0:* LISTEN

并没有运行起来 443 端口也没起来

看下进程也没这个配置文件的
# ps aux | grep squi
root 2936 0.0 0.4 112720 2340 pts/1 S+ 11:53 0:00 grep --color=auto squid
root 20753 0.0 1.0 83812 5212 ? Ss 11:21 0:00 /usr/sbin/squid -f /etc/squid/squid.conf
squid 20756 0.0 4.3 97788 21940 ? S 11:21 0:00 (squid-1) -f /etc/squid/squid.conf
squid 20757 0.0 0.3 27448 1648 ? S 11:21 0:00 (logfile-daemon) /var/log/squid/access.log

想问下大佬们,这个该怎么办啊,我快疯了

阅读 2.8k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进