Software

虛擬機 CentOS 7 擴充硬碟容量方式

先確認目前的磁碟狀況 [root@localhost ~]# fdisk -l Disk /dev/sda: 53.7 GB, 53687091200 bytes, 104857600 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x00073f29 Device Boot Start End Blocks Id System /dev/sda1 * …

Continue Reading
Software

CentOS 7 出現 500 OOPS: vsftpd: refusing to run with writable root inside chroot()

主要是資料夾沒有寫入的權限,其實把資料夾改成 777 也可以,但是我很不愛用 777 ,因為不管怎麼說 777 的權限太大了,如果可以我還是希望可以維持原來的權限設定 後來找到了方法修改一下 vsftpd.conf 就可以了 🙂 1. 修改 /etc/vsftpd/vsftpd.conf 設定檔 # vim /etc/vsftpd/vsftpd.conf 加入下面一行 allow_writeable_chroot=YES 2. 重新啟動 vsftpd FTP Server # systemctl restart vsftpd

Continue Reading