Two questions are hard to understand! About command execution and network!

Source: Internet
Author: User
Two questions are hard to understand! About command execution and network! -- Linux general technology-Linux technology and application information. For details, refer to the following section. Two questions are hard to understand! About command execution and network!

The premise is that the MYSQL5 PHP5 APACHE2 environment has been installed.

First, execute the command after it is started (in the corresponding directory)

[Root @ localhost bin] # apachectl stop

Prompt
Httpd (no pid file) not running

Use commands

[Root @ localhost bin] # ps-ef

....

Root 2509 1 0 14: 34? 00:00:00/myweb/apache2/bin/httpd-k star
Daemon 2510 2509 0? 00:00:00/myweb/apache2/bin/httpd-k star
Daemon 2511 2509 0? 00:00:01/myweb/apache2/bin/httpd-k star
Daemon 2512 2509 0? 00:00:00/myweb/apache2/bin/httpd-k star
Daemon 2513 2509 0? 00:00:00/myweb/apache2/bin/httpd-k star
Daemon 2514 2509 0? 00:00:00/myweb/apache2/bin/httpd-k star

Then execute

[Root @ localhost bin] # apachectl start

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

Why?

The second is about APACHE2 MYSQL5 PHP5 environment (premise: I used VM6 on the XP Server to build CentOS5.1 and the corresponding environment)

Run http: // 127.0.0.1/on the VM to open the webpage, but http: // locallhost/will not work.

It's strange. Enter http: // 192.168.0.128/(this is the IP address of the Virtual Machine) on my XP host. Why ??

Thank you for your advice!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.