Не перезагружается nginx в Ubuntu
С конфигурационными файлами все в порядке.
/** * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann * (http://qbnz.com/highlighter/ and http://geshi.org/) */ .bash.geshi_code {font-family:monospace;} .bash.geshi_code .imp {font-weight: bold; color: red;} .bash.geshi_code .kw1 {color: #000000; font-weight: bold;} .bash.geshi_code .kw2 {color: #c20cb9; font-weight: bold;} .bash.geshi_code .kw3 {color: #7a0874; font-weight: bold;} .bash.geshi_code .co0 {color: #666666; font-style: italic;} .bash.geshi_code .co1 {color: #800000;} .bash.geshi_code .co2 {color: #cc0000; font-style: italic;} .bash.geshi_code .co3 {color: #000000; font-weight: bold;} .bash.geshi_code .es1 {color: #000099; font-weight: bold;} .bash.geshi_code .es2 {color: #007800;} .bash.geshi_code .es3 {color: #007800;} .bash.geshi_code .es4 {color: #007800;} .bash.geshi_code .es5 {color: #780078;} .bash.geshi_code .es_h {color: #000099; font-weight: bold;} .bash.geshi_code .br0 {color: #7a0874; font-weight: bold;} .bash.geshi_code .sy0 {color: #000000; font-weight: bold;} .bash.geshi_code .st0 {color: #ff0000;} .bash.geshi_code .st_h {color: #ff0000;} .bash.geshi_code .nu0 {color: #000000;} .bash.geshi_code .re0 {color: #007800;} .bash.geshi_code .re1 {color: #007800;} .bash.geshi_code .re2 {color: #007800;} .bash.geshi_code .re4 {color: #007800;} .bash.geshi_code .re5 {color: #660033;} .bash.geshi_code span.xtra { display:block; }
При попытке перечитать конфиг файл пишет такое.
/** * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann * (http://qbnz.com/highlighter/ and http://geshi.org/) */ .bash.geshi_code {font-family:monospace;} .bash.geshi_code .imp {font-weight: bold; color: red;} .bash.geshi_code .kw1 {color: #000000; font-weight: bold;} .bash.geshi_code .kw2 {color: #c20cb9; font-weight: bold;} .bash.geshi_code .kw3 {color: #7a0874; font-weight: bold;} .bash.geshi_code .co0 {color: #666666; font-style: italic;} .bash.geshi_code .co1 {color: #800000;} .bash.geshi_code .co2 {color: #cc0000; font-style: italic;} .bash.geshi_code .co3 {color: #000000; font-weight: bold;} .bash.geshi_code .es1 {color: #000099; font-weight: bold;} .bash.geshi_code .es2 {color: #007800;} .bash.geshi_code .es3 {color: #007800;} .bash.geshi_code .es4 {color: #007800;} .bash.geshi_code .es5 {color: #780078;} .bash.geshi_code .es_h {color: #000099; font-weight: bold;} .bash.geshi_code .br0 {color: #7a0874; font-weight: bold;} .bash.geshi_code .sy0 {color: #000000; font-weight: bold;} .bash.geshi_code .st0 {color: #ff0000;} .bash.geshi_code .st_h {color: #ff0000;} .bash.geshi_code .nu0 {color: #000000;} .bash.geshi_code .re0 {color: #007800;} .bash.geshi_code .re1 {color: #007800;} .bash.geshi_code .re2 {color: #007800;} .bash.geshi_code .re4 {color: #007800;} .bash.geshi_code .re5 {color: #660033;} .bash.geshi_code span.xtra { display:block; }
Если перезагружать то пишет fail
/** * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann * (http://qbnz.com/highlighter/ and http://geshi.org/) */ .bash.geshi_code {font-family:monospace;} .bash.geshi_code .imp {font-weight: bold; color: red;} .bash.geshi_code .kw1 {color: #000000; font-weight: bold;} .bash.geshi_code .kw2 {color: #c20cb9; font-weight: bold;} .bash.geshi_code .kw3 {color: #7a0874; font-weight: bold;} .bash.geshi_code .co0 {color: #666666; font-style: italic;} .bash.geshi_code .co1 {color: #800000;} .bash.geshi_code .co2 {color: #cc0000; font-style: italic;} .bash.geshi_code .co3 {color: #000000; font-weight: bold;} .bash.geshi_code .es1 {color: #000099; font-weight: bold;} .bash.geshi_code .es2 {color: #007800;} .bash.geshi_code .es3 {color: #007800;} .bash.geshi_code .es4 {color: #007800;} .bash.geshi_code .es5 {color: #780078;} .bash.geshi_code .es_h {color: #000099; font-weight: bold;} .bash.geshi_code .br0 {color: #7a0874; font-weight: bold;} .bash.geshi_code .sy0 {color: #000000; font-weight: bold;} .bash.geshi_code .st0 {color: #ff0000;} .bash.geshi_code .st_h {color: #ff0000;} .bash.geshi_code .nu0 {color: #000000;} .bash.geshi_code .re0 {color: #007800;} .bash.geshi_code .re1 {color: #007800;} .bash.geshi_code .re2 {color: #007800;} .bash.geshi_code .re4 {color: #007800;} .bash.geshi_code .re5 {color: #660033;} .bash.geshi_code span.xtra { display:block; }
В чем может быть причина? Почему он сообщает, что bash - нет такого процесса?
/** * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann * (http://qbnz.com/highlighter/ and http://geshi.org/) */ .bash.geshi_code {font-family:monospace;} .bash.geshi_code .imp {font-weight: bold; color: red;} .bash.geshi_code .kw1 {color: #000000; font-weight: bold;} .bash.geshi_code .kw2 {color: #c20cb9; font-weight: bold;} .bash.geshi_code .kw3 {color: #7a0874; font-weight: bold;} .bash.geshi_code .co0 {color: #666666; font-style: italic;} .bash.geshi_code .co1 {color: #800000;} .bash.geshi_code .co2 {color: #cc0000; font-style: italic;} .bash.geshi_code .co3 {color: #000000; font-weight: bold;} .bash.geshi_code .es1 {color: #000099; font-weight: bold;} .bash.geshi_code .es2 {color: #007800;} .bash.geshi_code .es3 {color: #007800;} .bash.geshi_code .es4 {color: #007800;} .bash.geshi_code .es5 {color: #780078;} .bash.geshi_code .es_h {color: #000099; font-weight: bold;} .bash.geshi_code .br0 {color: #7a0874; font-weight: bold;} .bash.geshi_code .sy0 {color: #000000; font-weight: bold;} .bash.geshi_code .st0 {color: #ff0000;} .bash.geshi_code .st_h {color: #ff0000;} .bash.geshi_code .nu0 {color: #000000;} .bash.geshi_code .re0 {color: #007800;} .bash.geshi_code .re1 {color: #007800;} .bash.geshi_code .re2 {color: #007800;} .bash.geshi_code .re4 {color: #007800;} .bash.geshi_code .re5 {color: #660033;} .bash.geshi_code span.xtra { display:block; }
root@maxserver:~# nginx -c /etc/nginx/nginx.conf -t**
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
При попытке перечитать конфиг файл пишет такое.
/** * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann * (http://qbnz.com/highlighter/ and http://geshi.org/) */ .bash.geshi_code {font-family:monospace;} .bash.geshi_code .imp {font-weight: bold; color: red;} .bash.geshi_code .kw1 {color: #000000; font-weight: bold;} .bash.geshi_code .kw2 {color: #c20cb9; font-weight: bold;} .bash.geshi_code .kw3 {color: #7a0874; font-weight: bold;} .bash.geshi_code .co0 {color: #666666; font-style: italic;} .bash.geshi_code .co1 {color: #800000;} .bash.geshi_code .co2 {color: #cc0000; font-style: italic;} .bash.geshi_code .co3 {color: #000000; font-weight: bold;} .bash.geshi_code .es1 {color: #000099; font-weight: bold;} .bash.geshi_code .es2 {color: #007800;} .bash.geshi_code .es3 {color: #007800;} .bash.geshi_code .es4 {color: #007800;} .bash.geshi_code .es5 {color: #780078;} .bash.geshi_code .es_h {color: #000099; font-weight: bold;} .bash.geshi_code .br0 {color: #7a0874; font-weight: bold;} .bash.geshi_code .sy0 {color: #000000; font-weight: bold;} .bash.geshi_code .st0 {color: #ff0000;} .bash.geshi_code .st_h {color: #ff0000;} .bash.geshi_code .nu0 {color: #000000;} .bash.geshi_code .re0 {color: #007800;} .bash.geshi_code .re1 {color: #007800;} .bash.geshi_code .re2 {color: #007800;} .bash.geshi_code .re4 {color: #007800;} .bash.geshi_code .re5 {color: #660033;} .bash.geshi_code span.xtra { display:block; }
root@maxserver:~# kill -HUP `cat /var/run/nginx.pid`
-bash: kill: (5289) - No such process
-bash: kill: (5289) - No such process
Если перезагружать то пишет fail
/** * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann * (http://qbnz.com/highlighter/ and http://geshi.org/) */ .bash.geshi_code {font-family:monospace;} .bash.geshi_code .imp {font-weight: bold; color: red;} .bash.geshi_code .kw1 {color: #000000; font-weight: bold;} .bash.geshi_code .kw2 {color: #c20cb9; font-weight: bold;} .bash.geshi_code .kw3 {color: #7a0874; font-weight: bold;} .bash.geshi_code .co0 {color: #666666; font-style: italic;} .bash.geshi_code .co1 {color: #800000;} .bash.geshi_code .co2 {color: #cc0000; font-style: italic;} .bash.geshi_code .co3 {color: #000000; font-weight: bold;} .bash.geshi_code .es1 {color: #000099; font-weight: bold;} .bash.geshi_code .es2 {color: #007800;} .bash.geshi_code .es3 {color: #007800;} .bash.geshi_code .es4 {color: #007800;} .bash.geshi_code .es5 {color: #780078;} .bash.geshi_code .es_h {color: #000099; font-weight: bold;} .bash.geshi_code .br0 {color: #7a0874; font-weight: bold;} .bash.geshi_code .sy0 {color: #000000; font-weight: bold;} .bash.geshi_code .st0 {color: #ff0000;} .bash.geshi_code .st_h {color: #ff0000;} .bash.geshi_code .nu0 {color: #000000;} .bash.geshi_code .re0 {color: #007800;} .bash.geshi_code .re1 {color: #007800;} .bash.geshi_code .re2 {color: #007800;} .bash.geshi_code .re4 {color: #007800;} .bash.geshi_code .re5 {color: #660033;} .bash.geshi_code span.xtra { display:block; }
root@maxserver:~# sudo /etc/init.d/nginx restart
* Restarting nginx nginx [fail]
root@maxserver:~#
* Restarting nginx nginx [fail]
root@maxserver:~#
В чем может быть причина? Почему он сообщает, что bash - нет такого процесса?