Php-fpm在启动时显示“失败”

我运行Ubuntu 13.04。 我安装了nginx包,并从源代码编译php-5.4.15运行php-fpm。 问题是,当我这样做

sudo service php-fpm start 

我有

  Starting php-fpm ................................... fail 

但是php-fpm确实启动了,我可以在我的本地nginx服务器上显示一个phpinfo页面,所以我不明白为什么我得到这个失败信息。 同样的事情,如果在启动php-fpm之后,我是这么做的

  sudo service php-fpm restart 

我有

 Gracefully shutting down php-fpm warning, no pid file found - php-fpm is not running ? Starting php-fpm [30-May-2013 07:54:23] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98) [30-May-2013 07:54:23] ERROR: FPM initialization failed failed 

你有什么想法,这个问题可能来自哪里? 谢谢!

这里是我的./configure指令:

 ./configure \ --enable-fpm \ --enable-pdo \ --with-pdo-mysql \ --enable-sockets \ --enable-exif \ --enable-soap \ --enable-ftp \ --enable-wddx \ --enable-pcntl \ --enable-soap \ --enable-bcmath \ --enable-mbstring \ --enable-dba \ --enable-gd-native-ttf \ --enable-zip \ --enable-calendar \ --with-mysql \ --with-mysql-sock \ --with-mysqli \ --with-pdo-sqlite \ --with-iconv \ --with-zlib \ --with-bz2 \ --with-gettext \ --with-xmlrpc \ --with-openssl \ --enable-shmop \ --with-mhash \ --with-mcrypt \ --with-kerberos \ --with-imap \ --with-imap-ssl \ --enable-sysvmsg \ --enable-sysvsem \ --enable-sysvshm \ --with-xsl \ --with-curl \ --enable-intl \ --with-pcre-regex \ --with-gd \ --with-freetype-dir=/usr \ --with-jpeg-dir=/usr/lib \ --with-png-dir=/usr/lib \ --with-libxml-dir=/usr/lib \ --with-t1lib=/usr \ --with-ldap=/usr \ --with-pear \ --with-fpm-user=www-data \ --with-fpm-group=www-data \ --with-config-file-path=/etc/php-5.4.15/ \ --with-config-file-scan-dir=/etc/php-5.4.15/conf.d/ \ --with-libdir=lib 

PHP-fpm.conf:

  pid = /var/run/php-fpm.pid listen = 127.0.0.1:9000 

Nginx默认:

  location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; # # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini # # # With php5-cgi alone: fastcgi_pass 127.0.0.1:9000; # # With php5-fpm: # fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; } 

完全用killall php-fpm杀死它然后重新开始。 它看起来像初始化脚本无法find.pid文件,并抛出错误的错误。