AMH 社区首页
AMH社区 - 开放自由有价值的社区
[求助帖] 阿里云装AMH,第二天NGINX就提示没有这个目录了 |
|
---|---|
Yusky |
Yusky 发表于 2013-10-17 10:29:37
[root@UTianServer ~]# amh nginx start 昨晚还好好的。重启了几次。============================================================= [LNMP/Nginx] Amysql Host - AMH 4.1 http://Amysql.com /root/amh/nginx: line 20: /usr/local/nginx/sbin/nginx: No such file or directory [root@UTianServer ~]# /etc/init.d/amh-start ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.1 http://Amysql.com cat: /usr/local/nginx/logs/nginx.pid: No such file or directory kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.1 http://Amysql.com Shutting down MySQL. SUCCESS! [OK] MySQL stop ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.1 http://Amysql.com Starting MySQL. SUCCESS! [OK] MySQL start ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.1 http://Amysql.com [Notice] All PHP start... Starting pure-config.pl: Running: /usr/local/sbin/pure-ftpd --daemonize -A -c50 -B -C8 -D -E -fftp -H -I15 -lpuredb:/etc/pureftpd.pdb -lunix -L10000:8 -m4 -s -U133:022 -u100 -k99 -Z -p10100:10110 ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.1 http://Amysql.com /root/amh/nginx: line 20: /usr/local/nginx/sbin/nginx: No such file or directory [root@UTianServer ~]# /root/amh/nginx start ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.1 http://Amysql.com /root/amh/nginx: line 20: /usr/local/nginx/sbin/nginx: No such file or directory [root@UTianServer ~]# /root/amh/php start ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.1 http://Amysql.com [Notice] All PHP start... [root@UTianServer ~]# /usr/local/php/sbin/php-fpm --fpm-config /usr/local/php/etc/php-fpm.conf [17-Oct-2013 10:25:25] ERROR: An another FPM instance seems to already listen on /tmp/php-cgi.sock [17-Oct-2013 10:25:25] ERROR: FPM initialization failed 今天就进不了面板了。郁闷啊
点赞,加油! (0分)
2013-10-17 10:29:37 1
|
Yusky |
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin; clear; echo '============================================================='; echo ' [LNMP/Nginx] Amysql Host - AMH 4.1 '; echo ' http://Amysql.com'; sys_name=`sed '1q' /etc/issue`; sys_bit='32'; [ `getconf WORD_BIT` == '32' ] && [ `getconf LONG_BIT` == '64' ] && sys_bit='64'; IP=`ifconfig | grep 'inet addr:'| grep -v '127.0.0.*' | cut -d: -f2 | awk '{ print $1}'`; cpu_name=`cat /proc/cpuinfo | grep 'model name' | awk '{ for(i=4 ; i<=NF; i++){ print $i} }'`; cpu_num=`grep -c 'model name' /proc/cpuinfo`; #cpu utilization. head_str=`head -1 /proc/stat`; cpu_total=`echo "$head_str" | awk '{print $2+$3+$4+$5+$6+$7+$8}'`; cpu_user=`echo "$head_str" | awk '{print $2}'`; cpu_system=`echo "$head_str" | awk '{print $4}'`; sleep 0.2; head_str=`head -1 /proc/stat`; cpu_total_b=`echo "$head_str" | awk '{print $2+$3+$4+$5+$6+$7+$8}'`; cpu_user_b=`echo "$head_str" | awk '{print $2}'`; cpu_system_b=`echo "$head_str" | awk '{print $4}'`; cpu_total=$[$cpu_total_b-$cpu_total]; cpu_user=$[$cpu_user_b-$cpu_user]; cpu_system=$[$cpu_system_b-$cpu_system]; cpu_use=`echo "$cpu_user $cpu_system $cpu_total" | awk '{printf("%.2f", ($1+$2)*100/$3)}'`; uptime_str=`uptime`; up_time=`echo "$uptime_str" | cut -f 1 -d "," | awk '{ print $3 $4 $5 $6}'`; sys_load=`echo "$uptime_str" | awk '{print $(NF-2), $(NF-1), $NF}' `; free_m_str=`free -m`; ram_total=`echo "$free_m_str" | grep 'Mem' | awk '{print $2}'`; ram=`echo "$free_m_str" | grep 'buffers/cache' | awk '{print $3}'`; df_sum=0; df_use=0; while read result; do # set -- $result; i=0; for value in $result; do val=''; { echo $value | grep -q '^[0-9\.]\{1,\}M$' && val=`echo $value | sed 's#M##' | awk '{printf("%.2f", $1/1024)}'`; } || \ { echo $value | grep -q '^[0-9\.]\{1,\}G$' && val=`echo $value | sed 's#G##'`; } || \ { echo $value | grep -q '^[0-9\.]\{1,\}T$' && val=`echo $value | sed 's#T##' | awk '{printf("%.2f", $1*1024)}'`; } if [ "$val" != '' -a "$i" == 0 ]; then df_sum=`echo "$df_sum $val" | awk '{print $1+$2}'`; i=$; elif [ "$i" == 1 ]; then [ "$val" != '' ] && df_use=`echo "$df_use $val" | awk '{print $1+$2}'`; break; fi; done; done << EOT `df -h` EOT echo "Linux: ${sys_name} - ${sys_bit}BIT"; echo "UpTime: ${up_time} online."; echo "Time: ${dates} ${times}"; echo "LA: ${sys_load}"; echo "IP: ${IP}"; echo "CPU: ${cpu_use}%us, ${cpu_num}*CPU - "${cpu_name}; echo "RAM: ${ram}MB / ${ram_total}MB"; echo "HD: ${df_use}GB / ${df_sum}GB"; echo "";
回复
2013-10-17 10:37:23 2
|
Yusky |
支持 支持我为了搞SPDY编译过一次。 把NGINX编译到1.5.6版本了。 我之前在另外一个VPS上也是这样做的。一点问题都木有的啊
回复
2013-10-17 10:38:25 3
|
amysql |
你手动编译没成功吧。Nginx二进制文件都不存在了。
回复
2013-10-17 13:40:29 4
AMH面板 - 好用高效低占用、安全可靠极稳定 |
Yusky |
回复
2013-10-17 17:54:20 5
|
Yusky |
nginx.pid那文件没了。不知道啥情况。 然后我爸nginx.pid.bak改了个名就可以了。。。。看来还得编译
回复
2013-10-17 17:55:18 6
|
amysql |
回复
2013-10-17 20:11:21 7
|
Yusky |
额。原来是这样啊。 明天再搞搞。发个错误信息出来
回复
2013-10-18 00:02:02 8
|
ringk |
回复
2013-11-10 12:00:07 9
|
如梦令 |
我的也是阿里云,但是很正常!
回复
2013-11-10 19:26:37 10
|