Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How rhel6.3 installs apache using yum

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the knowledge of "how rhel6.3 uses yum to install apache". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

1. Install the httpd package:

Yum install httpd

2. Start the apache service:

[root@redhat Desktop] # / etc/init.d/httpd start

Starting httpd: [OK]

3. Install mod-ssl software package

[root@redhat Desktop] # yum install mod_ssl-y

4. Create a directory of / date/www/html and modify the security context:

Chcon-t httpd_sys_content_t / date/-R (l temporary modification is fine)

5. Add an apache executable file under / date/www/html:

6. Add an executable file under / var/www/html

7. Configure the configuration file of Apache: (pay attention to opening port 80)

8. Configure the configuration file of ssl: (pay attention to add the encrypted 2 lines)

9. Restart the apache service:

[root@redhat conf.d] # / etc/init.d/httpd restart

Stopping httpd: [OK]

Starting httpd: [OK]

[root@redhat conf.d] #

10. Configure domain name resolution: / etc/hosts

Apache.example.com 192.168.0.1

Redhat.example.com 192.168.0.1

11 whether the test was successful:

This is the end of "how to install apache with rhel6.3 using yum". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report