How to edit httpd.conf file in AMAZON EC2

前端 未结 3 1000
醉梦人生
醉梦人生 2020-12-13 04:27

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

but the problem is, when

相关标签:
3条回答
  • 2020-12-13 04:50

    You have to change the file as root user. Do this:

    sudo nano /etc/httpd/conf/httpd.conf
    

    Make your changes and save with ctrl + O, Enter. Done.

    0 讨论(0)
  • 2020-12-13 04:59

    It would be prompting you a alert, that you can duplicate it. So

    • So duplicate it, store it on desktop with same name
    • Edit it for your use(remove comment '#')
    • Save it
    • Now replace the original file with this one
    • it'll prompt for your password, provide that

    Now all updates you did are saved in httpd.conf Cheers

    0 讨论(0)
  • 2020-12-13 05:07

    I have found solution and its working...

    $ sudo nano /etc/httpd/conf/httpd.conf

    0 讨论(0)
提交回复
热议问题