在搭建环境时页面出现空白问题……

在搭建环境时出现问题如下:页面出现空白

重启apache出现:

(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

 

上google把那些代码打上去一搜,大概意思是80端口占用,解决方法如下:
[root@CentOS62 ~]# /usr/local/apache2/bin/apachectl restart
httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address 1.2.3.4:80
no listening sockets available, shutting down
Unable to open logs
[root@CentOS62 ~]# vi /etc/httpd/httpd.conf
[root@CentOS62 ~]# /usr/local/apache2/bin/apachectl restart
httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[root@CentOS62 ~]# netstat -lnp | grep 80
tcp 0 0 :::80 :::* LISTEN 7264/httpd
[root@CentOS62 ~]# ps 7264
PID TTY STAT TIME COMMAND
7264 ? Sl 0:01 /usr/local/apache2/bin/httpd -k restart
[root@CentOS62 ~]# kill 7264
[root@CentOS62 ~]# ps 7264
PID TTY STAT TIME COMMAND
7264 ? Sl 0:01 /usr/local/apache2/bin/httpd -k restart
[root@CentOS62 ~]# kill -9 7264
[root@CentOS62 ~]# ps 7264
PID TTY STAT TIME COMMAND
[root@CentOS62 ~]# ps 7264
PID TTY STAT TIME COMMAND
[root@CentOS62 ~]# netstat -lnp | grep 80
tcp 0 0 :::80 :::* LISTEN 13463/httpd
[root@CentOS62 ~]# ps 13463
PID TTY STAT TIME COMMAND
13463 ? Sl 0:01 /usr/local/apache2/bin/httpd -k restart
[root@CentOS62 ~]# netstat -lnp | grep 80
tcp 0 0 :::80 :::* LISTEN 13463/httpd
[root@CentOS62 ~]# ps 13463
PID TTY STAT TIME COMMAND
13463 ? Sl 0:01 /usr/local/apache2/bin/httpd -k restart
[root@CentOS62 ~]# kill 13463
[root@CentOS62 ~]# ps 13463
PID TTY STAT TIME COMMAND
13463 ? Sl 0:01 /usr/local/apache2/bin/httpd -k restart
[root@CentOS62 ~]# kill -9 13463
[root@CentOS62 ~]# ps 13463
PID TTY STAT TIME COMMAND
[root@CentOS62 ~]# netstat -lnp | grep 80
[root@CentOS62 ~]# netstat -lnp | grep 80
[root@CentOS62 ~]# netstat -lnp | grep 80
[root@CentOS62 ~]# /usr/local/apache2/bin/apachectl start

 

经过一周折,phpinfo 解析了!!