利用 Apache httpd 可以非常方便的搭建自己的文件服务器
- 安装 httpd 服务
yum install httpd
完成
版本查看
- 启动 httpd 服务
- 启动服务
service httpd start
如果端口被占用,就会失败;

-
修改配置文件( 默认路径是 /etc/httpd/conf/httpd.conf )
删掉之前的 ServerName 和 DocumentRoot,修改 Directory 和 Listen 端口;
-
重新启动服务
service httpd start
-
远程访问
在浏览器中输入 ip:port 即可访问设置的 /pcr 目录;
END
—— 2018-08-05 ——
1078




被折叠的 条评论
为什么被折叠?



