Configure Nginx + PHP under Windows

Source: Internet
Author: User

Background

Often Daoteng system, hovering on the convenience of Windows and the magic of Linux, once the toss system basic configuration is to be re-located, hereby record the Nginx PHP basic start, restart and exit

Online experience

Online This kind of thing a lot of search, there are many scripts, such as the following:

@echo offtaskkill /F /IM nginx.exe > nul

Like, it's not "classy".

Another way

I will not write batch, try a few words are not right, brainwave use a shortcut, command line tool Run command is not a call to the program, you can:

    • Create shortcut, Connection object is nginx.exe under any path
    • Change the "target" in the properties of the shortcut, restart at the back plus -s reload , exit at the back plus -s quit , start without adding or adding what you need
    • PHP does not use this method, or batch processing:

      @echo offecho Starting PHP FastCGI...d:\applications\php\php-cgi.exe -b 127.0.0.1:9000 -c d:\applications\php\php-dev.ini
      @echo offecho Stopping PHP...taskkill /F /IM php-cgi.exe > nulexit
Advantages and Disadvantages

Personal feeling shortcuts are more intuitive under Windows, and you can consider using

Configure Nginx + PHP under Windows

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.