In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how to deal with pictures that cannot be uploaded in PHP background system. It has certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let Xiaobian take you to understand it together.
problem
Feedback to a background system, the picture can not be uploaded.
background
There is no operation and maintenance post, and the pagoda panel used by the server is unified.
treatment process
Prepare to go to the server (Pagoda panel background) to see the error log, enter the account number and password Enter, prompt login success and jump to the login page, change a few browsers (own browser only used to see the production server) are all this situation
ssh login server succeeded, df -h a look, good guy, system disk 100%(system disk only 20G), the problem found
Prepare to empty the Recycle Bin first. There is nothing in the directory/www/Recycle_bin/.
Run du -h --max-depth=1 in the root directory to see which folder is occupied more. The logs of nginx in the/www/wwwlogs/directory account for about 13G.
Found a few log files over 1G, rm-rf xxx.log deleted, login panel background is still the same as before. df -h Found that the system disk is still 100% occupied, the file has been deleted, and the space has not been returned.
When linux deletes a file, it simply deletes a system pointer to the file, and if there are processes using the file, the file will always exist. You can use lsof| grep delete finds the corresponding process and then kills, or directly restarts the corresponding service.
After executing the/etc/init.d/nginx reload command and overloading the nginx service, it is found that the remaining space is normal, and the test upload function is normal.
Two things were done later. One was to clean up part of the request log, and the other was to create a log cleaning task on a regular basis.
A better way to delete.
A better way to delete large files would be to echo '' > file.ext, overwriting them directly.
Thank you for reading this article carefully. I hope that Xiaobian's "How to deal with pictures that cannot be uploaded in PHP background system" will be helpful to everyone. At the same time, I hope that everyone will support you a lot and pay attention to the industry information channel. More relevant knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.