Ast*_*aar 2 lighttpd centos5 ubuntu-10.04
我最近在 Ubuntu Server 10.04 x86_64 上安装了 Lighttpd 并创建了几个网站。我所做的是包含 /etc/lighttpd/vhost.d/*.conf 并将每个网站的配置文件放入该目录中。
我遇到的问题是,当我“service lighttpd start”时,我收到服务已启动的消息,没有错误消息:
root@178-33-104-210:~# service lighttpd start
Syntax OK
* Starting web server lighttpd [ OK ]
Run Code Online (Sandbox Code Playgroud)
但是,如果我查看监听的服务,就看不到 Lighttpd:
root@178-33-104-210:~# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost:mysql *:* LISTEN 829/mysqld
tcp 0 0 *:ftp *:* LISTEN 737/vsftpd
tcp 0 0 *:ssh *:* LISTEN 739/sshd
tcp6 0 0 [::]:ssh [::]:* LISTEN 739/sshd
Run Code Online (Sandbox Code Playgroud)
所以我正在寻找解决这个问题的方法。我检查了 /var/log/lighttpd/error.log ,里面什么也没有。
编辑:抱歉,我表示我使用 CentOS,但它实际上是 Ubuntu Server(我通常使用 CentOS,但必须使用 Ubuntu)。
测试配置:
/usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -t
Run Code Online (Sandbox Code Playgroud)
运行前台(用于调试):
/usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -D
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
8464 次 |
最近记录: |