मैंने अपने Ubuntu 10.04 ल्यूसिड सर्वर http://library.linode.com/web-servers/nginx/installation/ubuntu-10.04-lucid पर nginx स्थापित करने के लिए इस प्रक्रिया का पालन किया
Nginx शुरू करने के लिए एक init स्क्रिप्ट बनाने के बिंदु के बाद मैं खो गया, और फिर /etc/init.d/nginx प्रारंभ को कॉल कर रहा हूं। जब मैंने ऐसा किया, तो मुझे निम्नलिखित त्रुटि मिली:
Starting nginx_main: Starting /opt/nginx/sbin/nginx...
nginx: [alert] could not open error log file: open() "/opt/nginx/logs/error.log" failed (13: Permission denied)
2012/03/16 18:17:27 [emerg] 859#0: open() "/opt/nginx/logs/access.log" failed (13: Permission denied)
एक ही तरीका है कि मैं इसे चला सकता हूँ अगर मैं उपयोग करता हूँ sudoऔर यह इस प्रक्रिया को चलाता है root, जो कि मैं नहीं चाहता।
मैंने chownपूरी निर्देशिका ( chown -R nginx:nginx /opt/nginx) की है और chmod -R 755साथ ही मैंने निर्देशिका भी की है।
userनिर्देशानुसार जोड़ना CS3 भी मुझे यह त्रुटि देता है, लेकिन एक अतिरिक्त पंक्ति के साथ।
Starting nginx_main: Starting /opt/nginx/sbin/nginx...
nginx: [alert] could not open error log file: open() "/opt/nginx/logs/error.log" failed (13: Permission denied)
2012/03/16 18:48:34 [warn] 1606#0: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /opt/nginx/conf/nginx.conf:2
2012/03/16 18:48:34 [emerg] 1606#0: open() "/opt/nginx/logs/access.log" failed (13: Permission denied)
कोई विचार?

and I've also chmod -R 755 the directory as wellऐसा करते रहें और आप अंततः इसके लिए एक कीमत अदा करेंगे। यह देखने के लिए डरावना है कि इंटरनेट पर कितने लोग हैं जो किसी भी समस्या को "ठीक" करने के लिए कॉल के पहले पोर्ट के रूप में यह सुझाव दे रहे हैं। यदि आप कुछ नैतिक करते हैं तो यूनिक्स मित्रवत प्रतिक्रिया नहीं देगा।