Welcome! Log In Create A New Profile

Advanced

Re: Can't start nginx

Amin MG
January 17, 2014 09:24AM
Hello
exuce me for posting again in this old question
i have problem for starting nginx
i tried
[root@server libmemcached-0.48]# sh -x /etc/init.d/nginx stop
+ . /etc/rc.d/init.d/functions
++ TEXTDOMAIN=initscripts
++ umask 022
++ PATH=/sbin:/usr/sbin:/bin:/usr/bin
++ export PATH
++ '[' -z '' ']'
++ COLUMNS=80
++ '[' -z '' ']'
+++ /sbin/consoletype
++ CONSOLETYPE=pty
++ '[' -f /etc/sysconfig/i18n -a -z '' -a -z '' ']'
++ . /etc/profile.d/lang.sh
++ unset LANGSH_SOURCED
++ '[' -z '' ']'
++ '[' -f /etc/sysconfig/init ']'
++ . /etc/sysconfig/init
+++ BOOTUP=color
+++ RES_COL=60
+++ MOVE_TO_COL='echo -en \033[60G'
+++ SETCOLOR_SUCCESS='echo -en \033[0;32m'
+++ SETCOLOR_FAILURE='echo -en \033[0;31m'
+++ SETCOLOR_WARNING='echo -en \033[0;33m'
+++ SETCOLOR_NORMAL='echo -en \033[0;39m'
+++ PROMPT=yes
+++ AUTOSWAP=no
+++ ACTIVE_CONSOLES='/dev/tty[1-6]'
+++ SINGLE=/sbin/sushell
++ '[' pty = serial ']'
++
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
+ . /etc/sysconfig/network
++ NETWORKING=yes
++ HOSTNAME=server.ghoghnooschat.ir
++ GATEWAY=144.76.228.1
+ '[' yes = no ']'
+ nginx=/usr/sbin/nginx
++ basename /usr/sbin/nginx
+ prog=nginx
+ NGINX_CONF_FILE=/etc/nginx/nginx.conf
+ lockfile=/var/lock/subsys/nginx
+ case "$1" in
+ rh_status_q
+ rh_status
+ stop
+ echo -n 'Stopping nginx: '
Stopping nginx: + killproc nginx -QUIT
+ local RC killlevel= base pid pid_file= delay try
+ RC=0
+ delay=3
+ try=0
+ '[' 2 -eq 0 ']'
+ '[' nginx = -p ']'
+ '[' nginx = -d ']'
+ '[' -n -QUIT ']'
+ killlevel=-QUIT
+ base=nginx
+ __pids_var_run nginx ''
+ local base=nginx
+ local pid_file=/var/run/nginx.pid
+ pid=
+ '[' -f /var/run/nginx.pid ']'
+ local line p
+ '[' '!' -r /var/run/nginx.pid ']'
+ :
+ read line
+ '[' -z 25826 ']'
+ for p in '$line'
+ '[' -z '' -a -d /proc/25826 ']'
+ pid=' 25826'
+ :
+ read line
+ '[' -z '' ']'
+ break
+ '[' -n ' 25826' ']'
+ return 0
+ RC=0
+ '[' -z ' 25826' ']'
+ '[' -n ' 25826' ']'
+ '[' color = verbose -a -z '' ']'
+ '[' -z -QUIT ']'
+ checkpid 25826
+ local i
+ for i in '$*'
+ '[' -d /proc/25826 ']'
+ return 0
+ kill -QUIT 25826
+ RC=0
+ '[' 0 -eq 0 ']'
+ success 'nginx -QUIT'
+ '[' color '!=' verbose -a -z '' ']'
+ echo_success
+ '[' color = color ']'
+ echo -en '\033[60G'
+ echo -n '['
[+ '[' color = color ']'
+ echo -en '\033[0;32m'
+ echo -n ' OK '
OK + '[' color = color ']'
+ echo -en '\033[0;39m'
+ echo -n ']'
]+ echo -ne '\r'
+ return 0
+ return 0
+ '[' -z -QUIT ']'
+ return 0
+ retval=0
+ echo

+ '[' 0 -eq 0 ']'
+ rm -f /var/lock/subsys/nginx
+ return 0



and then :
[root@server libmemcached-0.48]# sh -x /etc/init.d/nginx start
+ . /etc/rc.d/init.d/functions
++ TEXTDOMAIN=initscripts
++ umask 022
++ PATH=/sbin:/usr/sbin:/bin:/usr/bin
++ export PATH
++ '[' -z '' ']'
++ COLUMNS=80
++ '[' -z '' ']'
+++ /sbin/consoletype
++ CONSOLETYPE=pty
++ '[' -f /etc/sysconfig/i18n -a -z '' -a -z '' ']'
++ . /etc/profile.d/lang.sh
++ unset LANGSH_SOURCED
++ '[' -z '' ']'
++ '[' -f /etc/sysconfig/init ']'
++ . /etc/sysconfig/init
+++ BOOTUP=color
+++ RES_COL=60
+++ MOVE_TO_COL='echo -en \033[60G'
+++ SETCOLOR_SUCCESS='echo -en \033[0;32m'
+++ SETCOLOR_FAILURE='echo -en \033[0;31m'
+++ SETCOLOR_WARNING='echo -en \033[0;33m'
+++ SETCOLOR_NORMAL='echo -en \033[0;39m'
+++ PROMPT=yes
+++ AUTOSWAP=no
+++ ACTIVE_CONSOLES='/dev/tty[1-6]'
+++ SINGLE=/sbin/sushell
++ '[' pty = serial ']'
++
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
+ . /etc/sysconfig/network
++ NETWORKING=yes
++ HOSTNAME=server.ghoghnooschat.ir
++ GATEWAY=144.76.228.1
+ '[' yes = no ']'
+ nginx=/usr/sbin/nginx
++ basename /usr/sbin/nginx
+ prog=nginx
+ NGINX_CONF_FILE=/etc/nginx/nginx.conf
+ lockfile=/var/lock/subsys/nginx
+ case "$1" in
+ rh_status_q
+ rh_status
+ exit 0




and my nginx don't start!
what should i do ?

--
Posted via http://www.ruby-forum.com/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Can't start nginx

Andreas Vieten July 11, 2009 11:13AM

Re: Can't start nginx

Maxim Dounin July 13, 2009 07:52AM

Re: Can't start nginx

Robert Gabriel July 13, 2009 08:14AM

Re: Can't start nginx

AndiV74 July 13, 2009 12:31PM

Re: Can't start nginx

Andreas Vieten July 13, 2009 05:23PM

Re: Can't start nginx

Robert Gabriel July 14, 2009 04:33AM

Re: Can't start nginx

Robert Gabriel July 14, 2009 04:32AM

Re: Can't start nginx

Amin MG January 17, 2014 09:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 282
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready