In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Install apache2 under ubuntu18.04
1. Install (under the root directory)
Sudo apt install apache2
2. Modify the port (if there is no vim editor, use apt-get install vim to install (request from the middle, enter Y))
Vim / etc/apache2/apache2.conf
Vim / etc/apache2/sites-enabled/000-default.conf
Change the default 80 to the port you need, mine to 8088.
3. Modify the home directory of the server (static web container)
Vim / etc/apache2/sites-enabled/000-default.conf
Change the path after the DocumentRoot inside to specify your own directory. Mine is the default (/ var/www/html).
(here a new html folder is created and the permissions are modified: chmod 777 html users can read, write and upload files.)
4. Restart the apache2 service
/ etc/init.d/apache2 restart
Reference:
1. Https://blog.csdn.net/u014454538/article/details/81260143
II. Https://blog.csdn.net/adley_app/article/details/78959864
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.