search

Home  >  Q&A  >  body text

When phpize compiles and installs memcached, every time the lnmp server is restarted, the memcached extension is lost?

There is already a memcached extension in my lnmp environment, but every time my server is restarted, my memcached extension is gone. I need to restart nginx and php-fpm before my memcached extension will come out. I wonder if anyone has encountered this situation.

高洛峰高洛峰2787 days ago914

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-05-27 17:44:19

    What does it mean that the extension is gone? State it clearly?
    My understanding
    1. Restart (start) the server
    2. Start nginx + php-fpm (the server has restarted, nginx must be started, not restarted)
    Then run the php program
    This is a necessary two-step process process, and according to what you said, memcached is there, and then there will be no problem.

    reply
    0
  • Cancelreply