配置远程服务器php环境---apache
1.使用putty登陆阿里云远程服务器终端。
2.安装远程ftp工具,SecureFX。
3.安装apache:
(1)下载apache,http://httpd.apache.org/download.cgi#apache24;
上传apache,到usr/local/src文件夹下;
(2)安装apache
[root@AY140120110338094846Z ~]#tar xzvf httpd-2.2.26.tar.gz [root@AY140120110338094846Z ~]#cd httpd-2.2.26 [root@AY140120110338094846Z ~]# ./configure --prefix=/usr/local/apache --enable-so; make ; make install
(3)配置http.conf。
1.查找http.conf
[root@AY140120110338094846Z ~]# find / -name http.conf
2.选择/usr/local/apache/conf/httpd.conf
3.修改SeverName:115.29.242.209:80,去掉“#”注释
(4)在浏览器,访问http://115.29.242.209/
参考:http:http://zhaoyun.blog.51cto.com/2090116/389770
相关推荐
Kafka 2020-09-18
Wepe0 2020-10-30
杜倩 2020-10-29
windle 2020-10-29
minerd 2020-10-28
mengzuchao 2020-10-22
Junzizhiai 2020-10-10
bxqybxqy 2020-09-30
风之沙城 2020-09-24
kingszelda 2020-09-22
大唐帝国前营 2020-08-18
yixu0 2020-08-17
TangCuYu 2020-08-15
xiaoboliu00 2020-08-15
songshijiazuaa 2020-08-15
xclxcl 2020-08-03
zmzmmf 2020-08-03
newfarhui 2020-08-03
likesyour 2020-08-01