legend-song

1.我选择了home下面的public_html文件作为网站的根目录。

这里我要放进去几个站的程序。

a.新增public_html,,最小权限为755,普通用户不给写权限:chmod 755 public_html 

b.上传程序文件:这里需要ftp传了。我们使用的是centos5.5自带的vsftp 软件

具体安装看我的日志。为了安全,最好不要把网站根目录设置为ftp权限目录,我这里设置的是/home/ftp_tmp文件。

c.把myweb 文件放到了public_html下面以后,接下来就是去httpd下面去配置网站的访问配置。

cd /etc/httpd/conf.d/->  cp welcome.conf ./myweb.conf,

打开myweb.conf :接下来是设置网站配置,我日志已经有。

注意:

listen 20034(端口监听)要配置

d 配置完毕,还要去iptables设置端口要开放的20034。

/sbin/iptables -I INPUT -p tcp --dport 20034 -j ACCEPT

/etc/rc.d/init.d/iptables save

 

分类:

技术点:

相关文章:

  • 2021-11-12
  • 2021-11-12
  • 2021-11-12
  • 2021-11-12
  • 2021-11-13
  • 2021-11-12
  • 2021-08-13
  • 2021-08-13
猜你喜欢
  • 2021-11-22
  • 2021-11-05
  • 2021-11-12
  • 2021-08-13
  • 2021-08-13
  • 2021-11-12
相关资源
相似解决方案