mac os nginx startup launchd configure
Nanyang Zhan
lists at ruby-forum.com
Fri Aug 1 04:46:10 MSD 2008
I want nginx to be started up every time my Mac os 10.5 system boots up.
So I create a launchd file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Disabled</key>
<false/>
<key>Label</key>
<string>com.zhan.nginx</string>
<key>OnDemand</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/opt/local/sbin/nginx</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
It works, but inside nginx error log, I see:
2008/08/01 08:24:50 [emerg] 244#0: bind() to 0.0.0.0:80 failed (48:
Address already in use)
2008/08/01 08:24:50 [emerg] 244#0: bind() to 0.0.0.0:80 failed (48:
Address already in use)
2008/08/01 08:24:50 [emerg] 244#0: bind() to 0.0.0.0:80 failed (48:
Address already in use)
2008/08/01 08:24:50 [emerg] 244#0: bind() to 0.0.0.0:80 failed (48:
Address already in use)
2008/08/01 08:24:50 [emerg] 244#0: bind() to 0.0.0.0:80 failed (48:
Address already in use)
2008/08/01 08:24:50 [emerg] 244#0: still could not bind()
2008/08/01 08:25:01 [emerg] 257#0: bind() to 0.0.0.0:80 failed (48:
Address already in use)
2008/08/01 08:25:01 [emerg] 257#0: bind() to 0.0.0.0:80 failed (48:
Address already in use)
2008/08/01 08:25:01 [emerg] 257#0: bind() to 0.0.0.0:80 failed (48:
Address already in use)
2008/08/01 08:25:01 [emerg] 257#0: bind() to 0.0.0.0:80 failed (48:
Address already in use)
2008/08/01 08:25:01 [emerg] 257#0: bind() to 0.0.0.0:80 failed (48:
Address already in use)
2008/08/01 08:25:01 [emerg] 257#0: still could not bind()
....
and these errors just go on and on...
If I run the nginx from the terminal, no error shown.
Can anyone tell me what is wrong with my launchd file?
--
Posted via http://www.ruby-forum.com/.
More information about the nginx
mailing list