Question
#linux Experiment 7(install application software in linux) ##task 1 Using source code to install Apache. 1. download apache source code and unzip to /root apache
#linux Experiment 7(install application software in linux) ##task 1Using source code to install Apache.
1. download apache source code and unzip to /root apache source code: httpd-2.2.34.tar.gz you could install xftp using xshell send it to virtual machine 2. check the readme file in the source code 3. follow the instruction to install apacheinstall folder: /usr/local/apachecheck if you have installed gcc before your installationyum install gcc) noteyou could get into the file httpd-2.2.34 to check: cat README more INSTALL 4. start apache 5. check port 80 using netstat
6. use #systemctl stop firewalld to shut down firewall 7. use your browser access http://yourVirtualMachineIP in your host machine, check the apache is started or not. PS. It is success if you got It works!. ##task 2Install Apache using rpm 1. Stop the apache install in task 1, not uninstall, check the port 80 is still open or not. 2. check all installed software packages, unstall the package httpd 3. download httpd-2.4.6-80.el7.centos.1.x86_64.rpm in /root and install it. 4. check all files in httpd software packagefind the configure file and command file. ps. you could use rpm qc httpd to check the configure file and command file
5. use #systemctl start httpd to start apacheuse netstat to check port 80 is open or not. 6. Access http://yourVirtualMachineIP in your host machine, check the apache is started or not. ##task 3Install Apache using yum 1. Check if your virtual machine could access internet, by using: ping www.baidu.com 2. uninstall apache: #rpm -e httdp 3. install apache: #yum install httpd 4. #systemctl start httpd to start apacheuse netstat to check port 80 is open or not.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started