以下存成run_apache&mysql as service.bat


cd f:\AppServ\apache
apache -i -n "Apache"


cd f:\AppServ\mysql\bin
mysqld -install


pause

 

--------------------------------------------------
以下存成start_apache&mysql.bat


cd f:\AppServ\mysql\bin
net start MySQL


cd f:\AppServ\apache
apache.exe -w -n "Apache" -k start

-----------------------------------------------

以下存成stop_apache&mysql.bat


cd f:\AppServ\mysql\bin
net stop MySQL


cd f:\AppServ\apache
Apache.exe -w -n "Apache" -k stop

----------------------------------------------------------------

以下存成uninstall_apache&mysql as service.bat


cd f:\AppServ\apache
apache -u -n "Apache"
cd f:\AppServ\mysql\bin
mysqld -remove


pause

創作者介紹

Matt 隨筆

mic1491 發表在 痞客邦 PIXNET 留言(0) 人氣()