Today, when I restarted LNMP, I was prompted: "MySQL server PID file could not be found!" Error. I immediately felt uncomfortable. How can I stop my website.
Although the website doesn't make money, it can't let it strike. Find the reason immediately. It suddenly occurred to me that this VPS server has not been maintained for a long time. Is it because the space is full?
Then execute the command: [Centos System]
cd /
du -sh *
At first glance, the space is really full, so there is a way. The var directory takes up a lot of space. Immediately execute the following commands in order to continue to check the directory.
cd var
du -sh *
At this time, I understand.
![MySQL server PID file could not be found Solution sharing MySQL server PID file could not be found解决办法分享](https://www.vpsbk.com/wp-content/themes/puock2.0/assets/img/z/load.svg)
Execution: yum clean all
Then execute the LNMP restart command: lnmp restart
It immediately shows that MYSQL is restarted successfully, and the problem is solved.