Centos 下搭建本地服务器
安装依赖包
yum search httpd
yum install httpd.i686
启动服务
service httpd start
查看存储位置
vim /etc/httpd/conf/httpd.conf
切换到存储位置
cd /var/www/html
创建测试例子
echo 'hello' > test.html
此时test.html无执行权限,为它赋权限
chmod 777 *
打开例子
./test.html
相关推荐
sushuanglei 2020-11-12
huangzonggui 2020-06-25
vanturman 2020-03-04
wqbala 2020-02-14
ROES 2020-02-13
masternan 2020-01-12
xcznb 2019-12-25
wzhwangzhuohui 2019-12-25
thlm0 2019-12-16
fengdos 2019-12-11
OwenJi 2019-12-01
不懂 2019-11-08
StupidBirds 2008-02-23
amorfait 2007-06-18
OwenJi 2019-10-29