本文介紹了如何在 AMAZON EC2 中編輯 httpd.conf 文件的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我是 AMAZON EC2 服務器的新手,最近我安裝了 PHP 和 MySQL,現在我想更新文件 /etc/httpd/conf/httpd.conf
I am new on AMAZON EC2 Server, recently I have Installed PHP and MySQL and now I want to update file /etc/httpd/conf/httpd.conf
但問題是,當我要更新它時,它會顯示類似 - Permission denied
之類的錯誤.更新它的最佳方法是什么?
but the problem is, when I am going to update it, it display error like - Permission denied
. What is the best way to update it?
推薦答案
您必須以 root 用戶身份更改文件.這樣做:
You have to change the file as root user. Do this:
sudo nano /etc/httpd/conf/httpd.conf
使用 ctrl + O、Enter 進行更改并保存.完成.
Make your changes and save with ctrl + O, Enter. Done.
這篇關于如何在 AMAZON EC2 中編輯 httpd.conf 文件的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!