Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1287514
  • 博文数量: 632
  • 博客积分: 2778
  • 博客等级: 大尉
  • 技术积分: 3387
  • 用 户 组: 普通用户
  • 注册时间: 2012-05-31 09:09
个人简介

123

文章分类

全部博文(632)

文章存档

2014年(36)

2013年(33)

2012年(563)

分类:

2012-06-18 17:32:50

原文地址:静态网站 作者: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



阅读(713) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~