In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to configure apache and yum in ubuntu14.04.1". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "how to configure apache and yum in ubuntu14.04.1"!
1. Install apahce
Apt-get install apache2
2. Default website root directory
The installation path for Apache is / var
The default site root path is / var/www/html
3. Configure apache self-startup
Apache2.conf location: / etc/apache2/apache2.conf
Vim / etc/apache2/apache2.conf
Add the following information at the end of the open apache2.conf file:
# ServerName
ServerName [ip address]
4. Restart apache
Directory: / etc/init.d/apache2 restart
. / apache2 restart
5. Restart the computer to check whether the service can start automatically; visit this computer
Enter http for browser: [previously configured ip address] enter and see
Configure http-based packet update source
1. Type "sudo vi / etc/apache2/apache2.conf" in the terminal window, enter, find the location of "var/www/", and change "/ root" to the new root directory.
Options FollowSymLinks
AllowOverride None
Require all denied
AllowOverride None
Require all granted
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
2. Type "sudo vi / etc/apache2/sites-available/000-default.conf"-- > enter-- > find the location of "DocumentRoot / var/www/html" in the terminal window-- > change "/ var/www/html" to the new root directory. Here, I can change it to "/ var/www/" or create a new repo_server.conf with the following configuration:
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot / var/www/repo
Options Includes FollowSymLinks MultiViews
AllowOverride None
Require all granted
ErrorLog / var/log/apache2/repo_server-error.log
CustomLog / var/log/apache2/repo_server.log common
Note: copy the dists directory on iso under repo.
3. Configure the port
In / etc/apache2/ports.conf
Enter Listen: 28000
Save exit
Step 6: restart Apache:
Enter "sudo / etc/init.d/apache2 restart" in the terminal window, enter the root user password, enter, and restart successfully
Client configuration
1. Find / etc/apt/sources.list
2. Enter deb [arch=amd64] http://11.11.177.72:28000 (dists) ngiam main
3. Just save and exit.
At this point, I believe you have a deeper understanding of "how to configure apache and yum in ubuntu14.04.1". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.