易客CRM,中小企业最忠实的合作伙伴!

XAMPP for Mac OS X 监听多个端口

php admin 1161℃ 0评论

昨天一个MacOSX的用户,由于MAC Mini服务器上装了2套易客CRM,想通过端口来访问不同的CRM系统,修改httpd.conf,增加多个监听端口,并且激活httpd-vhosts.conf,也增加了虚拟主机,但是启动apache一直报错,error_log报错信息如下:
[emerg] (70)Permission denied: couldn’t grab the accept mutex

今天在http://www.apachefriends.org/f/viewtopic.php?p=141066 找到了解决方法,原来只需要在httpd.conf增加一行
AcceptMutex flock
apache即可监听多个端口。
操作步骤如下:
1. Adding “AcceptMutex flock” to httpd.conf
2. Remove “#” in front of httpd-vhost.conf in httpd.conf – Load httpd-vhosts.conf
# Virtual hosts
Include /Applications/XAMPP/etc/extra/httpd-vhosts.conf

3. Adding “Listen 9001″ to http-vhosts.conf – you can change to the port number you like, higher than 1024.
4. Adding “” to http-vhosts.conf

ServerAdmin postmaster@dummy-host2.localhost
DocumentRoot “/Applications/XAMPP/xamppfiles/htdocs/tcc-clients/www.thecreativecompany.com.au/”
#ServerName http://www.c3crm.com
#ServerAlias http://www.c3crm.com
#ErrorLog “logs/dummy-host2.localhost-error.log”
#CustomLog “logs/dummy-host2.localhost-access.log” combined

It works for MacOSXServer + XAMPP for Mac OS X 1.7.3.

转载请注明:易客CRM官方博客 » XAMPP for Mac OS X 监听多个端口

喜欢 (0)or分享 (0)

您必须 登录 才能发表评论!