In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Use RunHiddenConsole to start nginx and php under windows
The role of RunHiddenConsole.exe is to automatically close the script after the command-line script is executed, while processes that are started from the script are not shut down. To put it simply, the black form (CMD command form) will not be displayed, but the programs running in the CMD command form will not be closed, especially some commands that will hang the command form that must be displayed, such as Tomcat, Php, Nginx, etc.
1. Start Php and Nginx, set php_home and nginx_home according to your environment, and then save it as a .bat file.
The maximum number of requests processed by each process of invalid REM set PHP_FCGI_CHILDREN=5 REM under @ echo off set php_home=./php/php-5.6.1-nts-Win32-VC11-x64 set nginx_home=./nginx/nginx-1.7.4 REM Windows, or set to the Windows environment variable set PHP_FCGI_MAX_REQUESTS=1000 echo Starting PHP FastCGI... RunHiddenConsole% php_home%/php-cgi.exe-b 127.0.0.1 php_home%/php.ini echo Starting nginx... 9000-c% RunHiddenConsole% nginx_home%/nginx.exe-p% nginx_home%
2. Close Php and Nginx
@ echo off echo Stopping nginx... Taskkill / F / IM nginx.exe > nul echo Stopping PHP FastCGI... Taskkill / F / IM php-cgi.exe > nul exit
RunHiddenConsole and profile download address
Reference article: configuring the nginx+php environment in the windows platform
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.