啟用個人網頁:
sudo a2enmod userdir
sudo /etc/init.d/apache2 reload
關閉個人網頁:
sudo a2dismod userdir
sudo /etc/init.d/apache2 reload
$ ls /etc/apache2
總計 40
-rw-r--r-- 1 root root 10587 2008-02-02 12:16 apache2.conf
drwxr-xr-x 2 root root 4096 2008-05-15 05:54 conf.d
-rw-r--r-- 1 root root 378 2008-02-02 12:16 envvars
-rw-r--r-- 1 root root 0 2008-05-15 05:54 httpd.conf
drwxr-xr-x 2 root root 4096 2008-05-15 05:54 mods-available
drwxr-xr-x 2 root root 4096 2008-05-15 05:54 mods-enabled
-rw-r--r-- 1 root root 59 2008-02-02 12:16 ports.conf
drwxr-xr-x 2 root root 4096 2008-05-15 05:54 sites-available
drwxr-xr-x 2 root root 4096 2008-05-15 05:54 sites-enabled
跟 Gentoo 把 config 部份弄到 /etc/conf.d/ 下的方法還真不同
sudo a2enmod userdir
sudo /etc/init.d/apache2 reload
關閉個人網頁:
sudo a2dismod userdir
sudo /etc/init.d/apache2 reload
$ ls /etc/apache2
總計 40
-rw-r--r-- 1 root root 10587 2008-02-02 12:16 apache2.conf
drwxr-xr-x 2 root root 4096 2008-05-15 05:54 conf.d
-rw-r--r-- 1 root root 378 2008-02-02 12:16 envvars
-rw-r--r-- 1 root root 0 2008-05-15 05:54 httpd.conf
drwxr-xr-x 2 root root 4096 2008-05-15 05:54 mods-available
drwxr-xr-x 2 root root 4096 2008-05-15 05:54 mods-enabled
-rw-r--r-- 1 root root 59 2008-02-02 12:16 ports.conf
drwxr-xr-x 2 root root 4096 2008-05-15 05:54 sites-available
drwxr-xr-x 2 root root 4096 2008-05-15 05:54 sites-enabled
跟 Gentoo 把 config 部份弄到 /etc/conf.d/ 下的方法還真不同
0 意見:
張貼留言