Chinaunix首页 | 论坛 | 博客
  • 博客访问: 212118
  • 博文数量: 71
  • 博客积分: 481
  • 博客等级: 二等列兵
  • 技术积分: 530
  • 用 户 组: 普通用户
  • 注册时间: 2012-02-24 09:07
文章分类

全部博文(71)

文章存档

2012年(71)

分类:

2012-05-16 19:56:20

原文地址:静态网站 作者:ztguang

把网站文件复制/var/www/html/ 中

[root@localhost ~]# nautilus /var/www/html/

[root@localhost ~]# chown -R apache.apache /var/www/html/*
[root@localhost
~]# chmod -R 700 /var/www/html/*
[root@localhost ~]# restorecon -R /var/www/html/*

[root@localhost ~]# gedit /etc/httpd/conf/httpd.conf &

[root@localhost
~]# service httpd start   或者   service httpd restart

[root@localhost
~]# iptables -F   //清空防火墙规则,让其他机器可以访问WWW服务器

[root@localhost ~]# ifconfig        //查看自己的IP地址


[root@bogon html]# netstat -nautp|grep 443
[root@bogon html]# kill -9 xxxx



阅读(1221) | 评论(2) | 转发(0) |
0

上一篇:中断解析

下一篇:动态网站

给主人留下些什么吧!~~

lxx风格2012-05-16 21:03:19

gedit /etc/httpd/conf/httpd.conf &
                293: DocumentRoot "/var/www/html"
                403:DirectoryIndex index.html index.htm index.html.var

lxx风格2012-05-16 21:02:23

less /var/log/httpd/error_log //出现启动失败时查看
gedit etc/httpd/conf.d/nss.conf //可能修改的配置文件