|
楼主 |
发表于 2018-4-7 12:46:03
|
显示全部楼层
kumotobi 发表于 2018-4-7 12:46
Deleting the filename doesn't actually delete the file. Some other process is holding the file open, ...
dalao我试了找到对应服务,然后重启服务,但是好像不行
[ol]root@server1:~# lsof | grep deletehttpd 957 root 10u REG 254,1 0 825 /tmp/ZCUDSeCFKw (deleted)httpd 1202 www 10u REG 254,1 0 825 /tmp/ZCUDSeCFKw (deleted)httpd 1203 www 10u REG 254,1 0 825 /tmp/ZCUDSeCFKw (deleted)httpd 1204 www 10u REG 254,1 0 825 /tmp/ZCUDSeCFKw (deleted)httpd 1205 www 10u REG 254,1 0 825 /tmp/ZCUDSeCFKw (deleted)httpd 1206 www 10u REG 254,1 0 825 /tmp/ZCUDSeCFKw (deleted)httpd 2340 www 10u REG 254,1 0 825 /tmp/ZCUDSeCFKw (deleted)root@server1:~# service httpd restartroot@server1:~# df -hFilesystem Size Used Avail Use% Mounted on/dev/vda1 738G 3.1G 697G 1% /udev 10M 0 10M 0% /devtmpfs 201M 4.5M 196M 3% /runtmpfs 501M 0 501M 0% /dev/shmtmpfs 5.0M 0 5.0M 0% /run/locktmpfs 501M 0 501M 0% /sys/fs/cgrouproot@server1:~# lnmp restart+-------------------------------------------+| Manager for LNMP, Written by Licess |+-------------------------------------------+| https://lnmp.org |+-------------------------------------------+Stoping LAMP...stop apache... httpd (no pid file) not running done[ ok ] Stopping mysql (via systemctl): mysql.service.Starting LAMP...start apache... done[ ok ] Starting mysql (via systemctl): mysql.service.root@server1:~# df -hFilesystem Size Used Avail Use% Mounted on/dev/vda1 738G 3.1G 697G 1% /udev 10M 0 10M 0% /devtmpfs 201M 4.5M 196M 3% /runtmpfs 501M 0 501M 0% /dev/shmtmpfs 5.0M 0 5.0M 0% /run/locktmpfs 501M 0 501M 0% /sys/fs/cgroup[/ol]复制代码 |
|