In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to install and configure Apache server in Linux". In daily operation, I believe many people have doubts about how to install and configure Apache server in Linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about "how to install and configure Apache server in Linux". Next, please follow the editor to study!
Apache is the number one Web server software used in the world. It can run on almost all widely used computer platforms, and is one of the most popular Web server-side software because of its cross-platform and security.
Specific steps to install Apache server under Linux system: 1. The first step commands to install apache:
Yum install httpd httpd-devel-Y2. Step 2 execute the command: start the server
Systemctl start httpd.service executes the following command to start the server with the startup of Linux:
Systemctl enable httpd.service3. It is not possible to do this, because the firewall in the Linux system will not open the port to Apache, so you need to do the following:
Firewall-cmd-zone=public-add-port=80/tcp-permanent firewall-cmd-reload4. At this point, you can enter the ip address of the server in the browser address bar to access it, and you can see this interface:
In this way, the apache server is successfully installed! 5. After the installation is completed, the default installation address of apache is etc/httpd/conf/httpd.conf. We can customize the default path of apache. First, create a folder under a directory, such as: create a html folder under the home file.
Change the path to the home folder: cd / home mkdir html and then open the original configuration file of apache:
Vi / etc/httpd/conf/httpd.conf open the configuration file and change the / var/www/html/ inside to / home/dic6. There is still a problem here. This problem occurs when accessing ip
The cause of the problem is that there are three states of SELinux caused by the shutdown of SELinux access in the Linux system: Enforcing,Permissive and Disabled.
Execute the command setenforce 0 to temporarily close SELinux and execute it, but the next time the server is restarted, SELinux will return to its original state, so the configuration file for finding SELnux will be set to disable state.
Vi / etc/selinux/config at this point, the study on "how to install and configure Apache server in Linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.