When using thePhpwamp automatic task , many students encounter the following problems:
"The Web service does not start automatically after the Phpwamp Green integration Environment restarts the computer (server)"
(This is also possible if you are experiencing this problem in other environments or when setting up yourself)
This article conforms to the following:
Why does the Web service change from manual to automatic or cannot be restarted?
Why did I set the service to automatic and turn it back on manually?
Why does the service not automatically restart after the server (computer) restarts?
The site service does not automatically restart the cause analysis after Windows Server restarts.
Why does restarting the server (computer) service fail to start automatically after the service is set to automatic?
msconfig Invalid setting , auto Invalid, invalid delay, invalid registry, How to prevent the website service from automatically reverting to manual ?
Author Preface:
Phpwamp is my development of a pure green integration of VC integration Environment, support Custom set PHP version , multi-version running concurrently, forcing the modification of any environment database password, one key to remove the domain name not 80 port, forcibly uninstall any environment, forced to remove the environment obstruction , automatic periodic task system and many other practical functions, the recent students in the use of automatic tasks, found that restart the computer after the Phpwamp website service will not follow the restart, you need to manually start the website services, the site can be normal operation, then this situation is what causes it, now I come for everyone to analyze and solve.
The same problem is not related to Phpwamp itself , is the problem of computer setup, or the automatic recovery of anti-virus software caused.
Students ' questions are as follows:
Student: Teacher for Mao I use phpwamp or other integration environment, every time the computer restarts, the website service will not automatically restart with the system? And the wonderful thing is that some computers can normally start with the system? Did I use the wrong posture ? Set the relevant website services to automatic, or a bird-like! I checked a lot of online information, according to the above to do, the results are futile, I have a go, simply pit Dad Ah! How to solve?
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/8D/A2/wKiom1ikIpfRysA5AANRx4uukKk110.png "title=" 1.png "alt=" Wkiom1ikipfrysa5aanrx4uukkk110.png "/>
Author Tip: Click on the image to see the high-definition map, you can not see the article you see is reproduced in the past, please come to my blog to view the original.
What should we do if we encounter the situation of the classmate above?
In the process of solving this problem, we may encounter the following problems, only need to solve according to their own situation.
First introduce the general solution, and then introduce the use of Phpwamp to solve this problem.
1th Step Solution:
Click "View all Services" on the Phpwamp main screen
650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/8D/A5/wKiom1ikfDvTz1puAACIq9jYEKU885.png "title=" 1.png "alt=" Wkiom1ikfdvtz1puaaciq9jyeku885.png "/>
Then right click on the service that you want to boot with the computer (server) , right clicking on properties.
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/8D/A5/wKiom1ikfPbgUiu8AAES94Ks-tg174.png "style=" float : none; "title=" 2.png "alt=" Wkiom1ikfpbguiu8aaes94ks-tg174.png "/>
Set it to "auto", usually we can set it up, but sometimes it doesn't, so keep looking down.
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/8D/A2/wKioL1ikfPbxqLFYAACQhvFaLD4009.png "style=" float : none; "title=" 3.png "alt=" Wkiol1ikfpbxqlfyaacqhvfald4009.png "/>
2nd Step Solution:
In the lower left corner of the input box, type msconfig, and open the System Configuration Utility to set the boot entry.
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/8D/A6/wKiom1ikgHSDg-3cAAHGGgyWrCc432.png "title=" 4.png "alt=" Wkiom1ikghsdg-3caahgggywrcc432.png "/>
Then select the Services tab in the startup item, and in the list, locate the service you want to start up, and then reboot.
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/8D/A6/wKiom1ikgM-DSjKdAABpxLupmWA928.png "title=" 5.png "alt=" Wkiom1ikgm-dsjkdaabpxlupmwa928.png "/>
Usually there is no problem in this step, but some people do not have to set it up!
That is because some anti-virus software optimization will reset the settings, resulting in Msconfig can not be modified, always change back to the pre-modification settings.
3rd Step Solution:
In order to demonstrate the installation of 360 security guard, other anti-virus software similar. first turn on the Kill soft boot entry setting. 650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/8D/A3/wKioL1ikhAjxb4aQAAEuI0oDhws892.png "title=" 6.png "alt=" Wkiol1ikhajxb4aqaaeui0odhws892.png "/>
Find the specific optimization record of the relevant website service , click the Restore Launch button, such as (other anti-virus software same)
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/8D/A6/wKiom1ikhLyREaBZAAF6zSY9NWA341.png "title=" 7.png "alt=" Wkiom1ikhlyreabzaaf6zsy9nwa341.png "/>
If you do this, you will not be able to start the Web service automatically.
Then can be Apache, MySQL and other corresponding Web services set to "automatic (delayed start)" can be.
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/8D/A3/wKioL1ikiFCgYieiAADgw4peoxU815.png "title=" 8.png "alt=" Wkiol1ikifcgyieiaadgw4peoxu815.png "/>
This will run the service after the load is complete.
The Ultimate Universal Solution:
If none of the above methods work, you can make a bat file for the service that you want to start with the system, and then join the startup item.
For example, the phpwamp integrated environment for Apache and MySQL service names are . phpwamp_apache2.4 and . Phpwamp_mysql, respectively, with the corresponding bat code as follows
(Other integrated environment or the installation of their own environment, please check the corresponding service name, the seat can be)
@echo Offset phpwamp_version= Update date 20160226TITLE Phpwamp%phpwamp_version% running in-%~dp0net stop. Phpwamp_apache2.4net stop. Phpwamp_mysql
Of course, you can also write down some of Phpwamp 's other services.
@echo Offset phpwamp_version= Update date 20160226TITLE Phpwamp%phpwamp_version% running in-%~dp0net stop. Phpwamp_apache2.2net stop. Phpwamp_apache2.4net stop. Phpwamp_mysqlnet stop. Phpwamp_nginxnet stop. Phpwamp_php-cginet stop. Phpwamp_svnservenet Stop. Phpwamp_memcachednet start phpwamp_apache2.2net start phpwamp_apache2.4net start. phpwamp_mysqlnet start. Phpwamp_nginxnet start phpwamp_php-cginet start phpwamp_svnservenet start phpwamp_memcached
Friendly tip: If you add a service that has not been installed, you may have a corresponding error when booting, which can be ignored.
Open txt, copy the above code, save the file as a bat suffix,
Name the bat file start-up.bat,start-up is the English start meaning, the names are arbitrary.
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/8D/A4/wKioL1ilCkuzYhtHAAAfIXKNL2w352.png "title=" 9.png "alt=" Wkiol1ilckuzyhthaaafixknl2w352.png "/>
Then open this folder, such as.
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/8D/A3/wKioL1iki0rgpmtpAACJSyDePiU064.png "title=" 10. PNG "alt=" Wkiol1iki0rgpmtpaacjsydepiu064.png "/>
Copy the Start-up.bat file in so that every time it starts, it will automatically start the service in bat.
(This action antivirus software is more sensitive, set when the anti-virus software to intercept, click through/or turn off the kill soft)
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/8D/A4/wKioL1ilCl6B-AOeAACJqq45MWs024.png "title=" 11. PNG "alt=" Wkiol1ilcl6b-aoeaacjqq45mws024.png "/>
Other integration environments, or your own environment, can be set up that way.
Other solutions: Comprehensive use of phpwamp to solve
If you are using phpwamp, if you encounter the above problems, you can not use the bat method, directly with the self-feature solution.
Turn on automatic tasks that restart your computer (server) regularly, and then turn on automatic tasks that restart the service on a timed basis.
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/8D/A3/wKioL1ik_tOieBzcAADnN5NXq88231.png "title=" 12. PNG "alt=" Wkiol1ik_toiebzcaadnn5nxq88231.png "/>
Usually we set the automatic restart of the server (restart the computer), the system will automatically start the Web services, if you encounter the above problems can not automatically restart the site services, you may restart the server, and then restart the site service, the two staggered a few minutes.
Case Study: For example, I want to set the 3rd and 5th number of each month of the 3:18 A.M. automatically restart the server (restart the computer), as shown in.
These two windows look like Ha, looking at the window title and the actual content is easy to distinguish, note that the first window is to restart the server, the second window is to restart the Web services, I opened two scheduled tasks, time stagger a few minutes to be able to, specific look at the picture red box shown.
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/8D/A4/wKioL1ilCxXTrEy2AADihMRHzcY545.png "title=" 13. PNG "alt=" Wkiol1ilcxxtrey2aadihmrhzcy545.png "/>
Note Stagger the time Ah, the first window is 3.18 points, the second window is 3:28, the service is more than the server started a little later.
The bat file in the article can be downloaded in the attachment of the article, and the bat attachment provided is for informational use only, specific code.
Welcome to Lccee Blog to see more blog posts: http://lccee.blog.51cto.com/
51CTO Related articles recommended:
custom settings for any PHP version tutorial: http://lccee.blog.51cto.com/10514884/1886154
PHP Connection MSSQL database case: http://lccee.blog.51cto.com/10514884/1889722
Phpwamp applications on cloud servers: http://lccee.blog.51cto.com/10514884/1887604
Web page encryption and Web page garbled most detailed analysis: http://lccee.blog.51cto.com/10514884/1886461
Virtual Hosting website full video case : http://lccee.blog.51cto.com/10514884/1886460
Force modification of all MySQL database passwords: http://lccee.blog.51cto.com/10514884/1886402
Forced removal of domain name Port number (exclusive feature): http://lccee.blog.51cto.com/10514884/1886424
700 PHP versions at any time switch, symbiosis mode and multi-opening: http://lccee.blog.51cto.com/10514884/1890945
This article is from the "Lccee" blog, make sure to keep this source http://lccee.blog.51cto.com/10514884/1898302
Phpwamp self-Starting exception, server restart after the service does not automatically restart the cause analysis