يراقب المشرف المشكلة المتمثلة في استمرار nginx في إعادة التشغيل
يراقب المشرف المشكلة المتمثلة في استمرار nginx في إعادة التشغيل
قم بالتمرير لأسفل هنا لرؤية المزيد من المحتوى
المشرف يراقب مشكلة استمرار nginx في إعادة التشغيل
يراقب المشرف nginx. بعد كتابة ملف التكوين، وجد أنه يستمر في إعادة التشغيل. بعد استكشاف الأخطاء وإصلاحها، تبين أن الأمر خاطئ:
الأمر = /usr/local/bin/nginx يبدأ هذا الأمر في الخلفية بشكل افتراضي، لكن المشرف لا يستطيع مراقبة برنامج الخلفية، لذلك يقوم المشرف دائمًا بتنفيذ هذا الأمر.
إضافة -g ‘daemon off;’ المعلمة يمكن أن تحل هذه المشكلة. هذه المعلمة تعني التشغيل في المقدمة.
الأمر = /usr/local/bin/nginx -g ‘daemon off;’
تكوين nginx الكامل لمراقبة المشرف هو كما يلي:
[program:nginx]
command = /usr/local/bin/nginx -g 'daemon off;'
stdout_logfile=/Users/ddios/nginx_stdout.log
stdout_logfile_maxbytes=10MB
stderr_logfile=/Users/ddios/nginx_stderr.log
user = ddios
stderr_logfile_maxbytes=10MB
autostart=true
autorestart=true
What to read next
Want more posts about supervisor?
Posts in the same category are usually the best next step for reading more on this topic.
View same categoryWant to keep following #supervisor?
Tags are useful for related tools, specific problems, and similar troubleshooting notes.
View same tagWant to explore another direction?
If you are not sure what to read next, return to the homepage and start from categories, topics, or latest updates.
Back home