Loading...

Linux vi修改文件時遇到:E212無法打開文件進行寫入

Temperature: 0 °C

Mark ChangMark Chang
author_tools

執行修改

vi /etc/ssh/sshd_config

使用wq(儲存後離開)或者是wq!(唯讀檔案強制儲存後離開)指令
卻一直出現提示E212 can't open file for writing

Linux vi修改文件時遇到:E212無法打開文件進行寫入
意思是不能保存。
原因:權限不夠,普通無法保存,需要使用超級用戶才可以。
解決方法:切換至超級用戶,再進行修改保存。
指令:sudo su 切換至超級用戶。
若要切換成其他用戶則可使用
sudo su 用戶名稱

以上紀錄。

https://innstory.com/story-Linux_vi修改文件時遇到:E212無法打開文件進行寫入-2312
Linux

Prev
 JavaScript_搜尋字串並取代

Next
設置屬性_PHP_PDO_setAttribute 

About the Author

Mark Chang

離不開電腦的宅男

Visitor message

Leave some footprints to prove that you visited me

Recommended reading

Author's other related stories

Ubuntu環境下apache 目錄啟動.htaccess 功能

Ubuntu環境下apach...

.htaccess 檔案是目錄層面的設定檔,可以對目錄變更 Apache 的設定。 要使用 .hta...

如何將mysql table auto_increment重設

如何將mysql table...

photo555 資料表裡的資料加加減減,一不小心突然驚覺當初的欄位長度設定的不夠⊙⊙ 當然,你可以...

修改apache設定

修改apache設定

pexelsphotolock5 進入apache資料夾,找到conf資料夾(預設是C:\AppSe...

Please select an option

error

Hi, thank you for your participation, but you cannot vote repeatedly~

Join innstory now and start recording your story.

"Innstory" is a place to store stories. We are committed to becoming a warm platform. Deepening the bonds between people is our direction.
We are convinced that the blockchain between people is not just a cold calculation. Join us now.

Wrong format