Ubuntu/Step by step:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Jinzd留言 | 贡献
Jinzd留言 | 贡献
第13行: 第13行:


=Web Server (Apache2)=
=Web Server (Apache2)=
Please see [http://wiki.ubuntu.org.cn/Ubuntu/Web_Servers Wiki Ubuntu Web Server] and [https://help.ubuntu.com/16.04/serverguide/web-servers.html Help Web Server].


<pre>
<pre>

2016年10月26日 (三) 22:43的版本

Update & Upgrade

# Make sure your list of packages is update to date, and system upgrade 
sudo apt-get update

sudo apt-get upgrade

sudo apt-get dist-upgrade

sudo apt-get autoremove

Web Server (Apache2)

Please see Wiki Ubuntu Web Server and Help Web Server.

# Installation

sudo apt-get install apache2

# Create a new web site JUniverse
# Customer can create a directory named JUnivers, like ~/JUniverse.

cd /var/www/html

# Create link for JUniverse

sudo ln -s ~/JUniverse JUniverse

cd /etc/apache2/sites-available

sudo cp 000-default.conf juniverse.conf

sudo nano juniverse.conf

# updating it as below

<VirtualHost *:81>

DocumentRoot /var/www/JUniverse

# save and exit

# restart

sudo a2ensite juniverse.conf

sudo service apache2 restart