我这样做:
sudo ln –s /etc/apache2/sites-available/LoginProject /etc/apache2/sites-enabled/LoginProject
我得到:
ln: target `/etc/apache2/sites-enabled/LoginProject' is not a directory
/ etc / apache2 / sites-available / LoginProject它是一个文件
编辑:
这个命令:
ls -l /etc/apache2/sites-enabled/LoginProject /etc/apache2/sites-available/LoginProject
输出:
ls: cannot access /etc/apache2/sites-enabled/LoginProject: No such file or directory -rw-r--r-- 1 root root 526 2011-09-27 18:40 /etc/apache2/sites-available/LoginProject
编辑2:
$ls /etc/apache2/sites-available/ default default-ssl LoginProject $ $ls /etc/apache2/sites-enabled/ $
尝试:sudo a2ensite LoginProject
你也可以做sudo ln -s / etc / apache2 / sites-available / LoginProject / etc / apache2 / sites-enabled /