Chinaunix首页 | 论坛 | 博客
  • 博客访问: 15330268
  • 博文数量: 2005
  • 博客积分: 11986
  • 博客等级: 上将
  • 技术积分: 22535
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-17 13:56
文章分类

全部博文(2005)

文章存档

2014年(2)

2013年(2)

2012年(16)

2011年(66)

2010年(368)

2009年(743)

2008年(491)

2007年(317)

分类: 系统运维

2010-03-03 12:50:21

luther@gliethttp:~$ sudo apt-get install apache2
luther@gliethttp:~$ firefox 127.0.0.1
luther@gliethttp:~$ ls /var/www  这就是默认的根目录
index.html
luther@gliethttp:~$ sudo ln -s /vobs /var/www
-rw-r--r-- 1 root root  177 2009-11-19 14:39 index.html
lrwxrwxrwx 1 root root    5 2010-03-03 12:48 vobs -> /vobs
luther@gliethttp:~$ firefox 127.0.0.1/vobs 这样就可以浏览/vobs下的所有文件了
查看登录log日志
luther@gliethttp:~$ vim /var/log/apache2/access.log
阅读(1197) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~