簡單粗暴:重啓網站
Linux系統重啓或無端變爲只讀形成網站沒法正常訪問的簡單臨時的作法:spa
1、進程
一、mount:
用於查看哪一個模塊輸入只讀,通常顯示爲:rem
/dev/hda1 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda5 on /home type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/hda2 on /usr/local type ext3 (rw)
/dev/nb1 on /EarthView/RAW type ext3 (ro)(變爲只讀了)方法
二、若是發現有ro,就從新mount,或者umount之後再remountfilter
三、umount /dev/nb1
若是發現有提示「device is busy」,找到是什麼進程使得他busyvi
fuser -m /mnt/data 將會顯示使用這個模塊的pid
fuser -mk /mnt/data 將會直接kill那個piddata
而後從新mount便可。系統
四、還有一種方法是直接remount,命令爲
mount -o rw,remount /mnt/data