生產環境:
操作系統:CentOS
[root@sky9896 html]# vi test_conn_use_db.php
"test_conn_use_db.php" E514: write error (file system full?) #文件系統空間滿了嗎?
[root@sky9896 html]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 49G 49G 0 100% / #根目錄滿了
tmpfs 939M 1.2M 938M 1% /dev/shm
/dev/sda1 93M 54M 35M 61% /boot
/dev/sda5 179G 2.4G 168G 2% /home
[root@sky9896 www]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 49G 48G 0 100% / #有1G可用空間
tmpfs 939M 1.2M 938M 1% /dev/shm
/dev/sda1 93M 54M 35M 61% /boot
/dev/sda5 179G 2.4G 168G 2% /home
[root@sky9896 html]# vi test_conn_use_db.php
"test_conn_use_db.php" 25L, 467C written #可以寫入磁盤了
小結:創建文件後無法保存,原因就是Linux根目錄分區空間滿了。