php-fpmを再起動しようとしたらunable to bind listening socket for address ‘127.0.0.1:9000’: Address already in use (98)

[dacelo@kusanagi ]$ sudo systemctl restart php-fpm
Job for php-fpm.service failed because the control process exited with error code. See "systemctl status php-fpm.service" and "journalctl -xe" for details.
[gp_kikukawa@kusanagi07 DocumentRoot]$ sudo systemctl status php-fpm.service
● php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 木 2019-04-25 16:44:54 JST; 16s ago
Process: 61932 ExecStart=/usr/sbin/php-fpm --nodaemonize (code=exited, status=78)
Main PID: 61932 (code=exited, status=78)
 
425 16:44:54 kusanagi.internal php-fpm[61932]: [25-Apr-2019 16:44:54] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98)
425 16:44:54 kusanagi0..internal php-fpm[61932]: [25-Apr-2019 16:44:54] ERROR: FPM initialization failed
Hint: Some lines were ellipsized, use -l to show in full.
 
unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98)

ポート9000が競合してるらしい。
lsofで使用中のポートを見てみる。

[dacelo@kusanagi nginx]$ sudo lsof -i:9000
COMMAND   PID  USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
php-fpm 45557  root    7u  IPv4 588046      0t0  TCP localhost:cslistener (LISTEN)
php-fpm 45583 httpd    9u  IPv4 588046      0t0  TCP localhost:cslistener (LISTEN)
php-fpm 45584 httpd    9u  IPv4 588046      0t0  TCP localhost:cslistener (LISTEN)
php-fpm 45585 httpd    9u  IPv4 588046      0t0  TCP localhost:cslistener (LISTEN)
php-fpm 45586 httpd    9u  IPv4 588046      0t0  TCP localhost:cslistener (LISTEN)
php-fpm 45587 httpd    9u  IPv4 588046      0t0  TCP localhost:cslistener (LISTEN)
php-fpm 45588 httpd    9u  IPv4 588046      0t0  TCP localhost:cslistener (LISTEN)
php-fpm 45589 httpd    9u  IPv4 588046      0t0  TCP localhost:cslistener (LISTEN)
php-fpm 45590 httpd    9u  IPv4 588046      0t0  TCP localhost:cslistener (LISTEN)
php-fpm 45591 httpd    9u  IPv4 588046      0t0  TCP localhost:cslistener (LISTEN)
php-fpm 45592 httpd    9u  IPv4 588046      0t0  TCP localhost:cslistener (LISTEN)

なんでnginxしか使ってないのにhttpdのプロセスがあるのかなー。ちょと不安に感じながらも全部kill…と思ったら、最初のrootのプロセスをkillしたら全部連鎖して死んだ。

[dacelo@kusanagi nginx]$ sudo systemctl restart php-fpm.service
[dacelo@kusanagi nginx]$ sudo systemctl status php-fpm.service
● php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor preset: disabled)
Active: active (running) since 木 2019-04-25 17:10:23 JST; 12s ago
Main PID: 64263 (php-fpm)
Status: "Processes active: 0, idle: 10, Requests: 0, slow: 0, Traffic: 0req/sec"
CGroup: /system.slice/php-fpm.service
├─64263 php-fpm: master process (/etc/php-fpm.conf)
├─64264 php-fpm: pool www
├─64265 php-fpm: pool www
├─64266 php-fpm: pool www
├─64267 php-fpm: pool www
├─64268 php-fpm: pool www
├─64269 php-fpm: pool www
├─64270 php-fpm: pool www
├─64271 php-fpm: pool www
├─64272 php-fpm: pool www
└─64273 php-fpm: pool www

うまくいきました。

広告

About: dacelo


59 thoughts on “php-fpmを再起動しようとしたらunable to bind listening socket for address ‘127.0.0.1:9000’: Address already in use (98)”

  1. It’s a shame you don’t have a donate button! I’d without a doubt donate to this fantastic blog!
    I guess for now i’ll settle for book-marking and adding
    your RSS feed to my Google account. I look forward to new
    updates and will talk about this site with my
    Facebook group. Chat soon!

  2. It’s genuinely very complicated in this busy life to listen news on Television, thus I only use world wide web
    for that purpose, and obtain the latest information.

  3. I know this if off topic but I’m looking into starting my own blog and was curious what all is needed to get set up?
    I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very internet savvy so I’m not 100% sure. Any tips or advice would be greatly appreciated.
    Kudos

  4. Link exchange is nothing else except it is just placing the other person’s website link on your page at appropriate
    place and other person will also do same for you.

  5. I’m amazed, I must say. Seldom do I come across a blog
    that’s equally educative and engaging, and let me tell you,
    you have hit the nail on the head. The issue is something that not enough men and women are
    speaking intelligently about. Now i’m very happy I found this
    in my search for something relating to this.

    1. I was wondering if you ever considered changing the page layout of your site?
      Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could
      connect with it better. Youve got an awful lot of text for only having one or two images.

      Maybe you could space it out better?

    2. Very good blog you have here but I was curious about if you knew
      of any user discussion forums that cover the same topics
      discussed here? I’d really love to be a part of community
      where I can get comments from other experienced individuals that share the same interest.
      If you have any recommendations, please let me know. Appreciate it!

  6. Hi it’s me, I am also visiting this website on a regular basis, this website is in fact fastidious and the
    users are genuinely sharing pleasant thoughts.

  7. I blog frequently and I truly thank you for your content.

    This article has truly peaked my interest. I’m going to
    take a note of your blog and keep checking for new information about once a week.
    I subscribed to your Feed as well.

    1. Thanks for your marvelous posting! I genuinely
      enjoyed reading it, you’re a great author.I will
      ensure that I bookmark your blog and definitely will come back very soon. I want to encourage that
      you continue your great writing, have a nice holiday weekend!

  8. Hello there! I know this is kind of off topic but I was wondering if you knew where I could locate a
    captcha plugin for my comment form? I’m using the
    same blog platform as yours and I’m having difficulty finding
    one? Thanks a lot!

  9. We are a gaggle of volunteers and opening a brand new scheme in our community.

    Your website offered us with helpful information to work
    on. You have performed a formidable activity and our whole
    neighborhood will probably be thankful to you.

  10. Great items from you, man. I’ve understand your
    stuff prior to and you are simply too magnificent.
    I really like what you’ve got right here, certainly like what you are stating and
    the best way in which you are saying it. You’re
    making it entertaining and you continue to take care of
    to keep it wise. I can not wait to learn much more
    from you. This is really a terrific web site.

    1. Admiring the commitment you put into your
      site and in depth information you present. It’s nice to come across a blog every once in a while that isn’t the same outdated rehashed information. Excellent read!

      I’ve saved your site and I’m including your RSS feeds to my Google account.

    2. Today, I went to the beachfront with my kids. I found a sea shell and
      gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She placed the shell to her ear and screamed.
      There was a hermit crab inside and it pinched her ear.
      She never wants to go back! LoL I know this is completely off topic but I had to tell
      someone!

  11. Hello There. I found your blog using msn. This is a very well written article.
    I will be sure to bookmark it and return to read more of your useful information. Thanks for the post.
    I will definitely return.

  12. When someone writes an piece of writing he/she maintains the
    idea of a user in his/her brain that how a
    user can be aware of it. Therefore that’s why this article is outstdanding.
    Thanks!

  13. Hello there! I know this is kinda off topic but I was wondering if you knew where I could find a
    captcha plugin for my comment form? I’m using the same
    blog platform as yours and I’m having trouble finding one?
    Thanks a lot!

  14. Great blog! Is your theme custom made or did you download it from somewhere?

    A theme like yours with a few simple adjustements would really make my blog
    shine. Please let me know where you got your design. Cheers

  15. Oh my goodness! Impressive article dude! Thank you so much, However I
    am experiencing troubles with your RSS. I don’t
    understand why I cannot subscribe to it. Is there anyone else having the same
    RSS issues? Anyone who knows the solution can you kindly respond?
    Thanks!!

  16. Hello terrific website! Does running a blog like this require a lot of work?
    I’ve no understanding of computer programming however I was hoping to start
    my own blog soon. Anyway, should you have any ideas or tips for new blog owners please share.

    I understand this is off subject nevertheless I simply wanted
    to ask. Thanks a lot!

  17. You’re so interesting! I don’t suppose I’ve truly read through
    something like that before. So wonderful to discover someone with a few genuine thoughts on this subject matter.

    Really.. thank you for starting this up. This web site is one thing that is required on the internet,
    someone with a bit of originality!

  18. Hello there! This is my first visit to your blog! We are a
    team of volunteers and starting a new project in a
    community in the same niche. Your blog provided us valuable information to
    work on. You have done a marvellous job!

  19. What i do not understood is if truth be told how you are
    no longer actually much more well-favored than you might be now.

    You’re very intelligent. You know therefore significantly
    with regards to this subject, produced me personally imagine it
    from numerous varied angles. Its like men and women aren’t interested unless it is one thing to accomplish with Lady gaga!
    Your personal stuffs excellent. All the time care for it up!

Leave a Reply

Your email address will not be published. Required fields are marked *