0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

centos 空き容量チェック

Posted at

エラーが出た

結論
vps の 空き容量不足。
よってファイルを削除すれば良い。


FTPのエラー
[2021/08/29 11:33] Failed to transfer file 'C:\Users\xxx\config\cache.php': could not put FTP file "ftp://xxx/config/cache.php".
[2021/08/29 11:33] Automatic upload completed in 209 ms: 1 item failed

Laravelのエラー
ErrorException (E_WARNING)
file_put_contents(): Only 0 of 8977 bytes written, possibly out of free disk space

/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php122
/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php122

対応


df -h

/dev/vda2        50G   49G   49G  99% /
devtmpfs        911M     0  911M   0% /dev
tmpfs           920M     0  920M   0% /dev/shm
tmpfs           920M   17M  904M   2% /run
tmpfs           920M     0  920M   0% /sys/fs/cgroup
tmpfs           184M     0  184M   0% /run/user/1000
tmpfs           184M     0  184M   0% /run/user/994


おや? /dev/vda2 が重いです。
はい。では、まずはhtml置き場まで移動

cd /var/www/html/


du -h --max-depth=1
998M    ./aaa.net
2.9G    ./bbb.com
5.1M    ./munin
8.0K    ./acme
22.9G    ./ccc.net
15G     .

はい、ccc.net いりませんので消しましょう

フォルダごと消すので、 rm コマンドは注意して使ってね!


rm -rf ccc.net


はい、これで容量が空きました。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?