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

javascript獲取當前時間

javascript獲取當前...

watchclock var myDate = new Date(); //獲取當前年 var ye...

在PHP強制顯示錯誤訊息的方法

在PHP強制顯示錯誤訊息的方...

若是單一檔案,只需要在每個PHP檔案裡添加下列行: iniset(&#;displayerrors&...

使用curl執行POST請求

使用curl執行POST請求...

curl命令是一個利用URL規則在命令行下工作的文件傳輸工具。 支持文件的上傳和下載。 這邊範例使用...

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