概述
@echo offif exist "%CATALINA_HOME%" (goto update_CATALINA_HOME) else (goto create_CATALINA_HOME):create_CATALINA_HOMEwmic ENVIRONMENT create name="CATALINA_HOME",username="",VariableValue="%cd%tomcat":update_CATALINA_HOMEwmic ENVIRONMENT set name="CATALINA_HOME",username="",VariableValue="%cd%tomcat"if exist "%JAVA_HOME%" (goto update_JAVA_HOME) else (goto create_JAVA_HOME):create_JAVA_HOMEwmic ENVIRONMENT create name="JAVA_HOME",username="",VariableValue="%cd%jdk":update_JAVA_HOMEwmic ENVIRONMENT set name="JAVA_HOME",username="",VariableValue="%cd%jdk"if exist "%ANT_HOME%" (goto update_ANT_HOME) else (goto create_ANT_HOME):create_ANT_HOMEwmic ENVIRONMENT create name="ANT_HOME",username="",VariableValue="%cd%ant":update_ANT_HOMEwmic ENVIRONMENT set name="ANT_HOME",username="",VariableValue="%cd%ant"wmic ENVIRONMENT set name="CLASSPATH",username="",VariableValue=".;%%JAVA_HOME%%lib"@echo offset MYSQL_HOME=%~dp0mysqlecho MYSQL_HOME=%MYSQL_HOME%del /F my.iniecho [client] >> my.iniecho port = 3306 >> my.iniecho default_character_set=utf-8 >> my.iniecho [mysqld] >> my.iniecho %server_default_character_set%=utf8 >> my.iniecho default_storage_engine=InnoDB >> my.iniecho basedir=%MYSQL_HOME%>>my.iniecho datadir=%MYSQL_HOME%data>> my.iniecho innodb_data_file=ibdata1:50M;ibdata2:10M:autoextend >> my.iniecho transaction-isolation=READ-COMMITTED >> my.iniecho port=%server_port% >> my.iniecho max_allowed_packet = 64M >> my.iniecho "my.ini in %MYSQL_HOME% created."set PATH=%MYSQL_HOME%bin;%PATH%if exist "%MYSQL_HOME%binmysqld-nt.exe" call %MYSQL_HOME%binmysqld-nt --install-manual "mysql" --defaults-file="%MYSQL_HOME%my.ini"if not exist "%MYSQL_HOME%binmysqld-nt.exe" call %MYSQL_HOME%binmysqld --install-manual "mysql" --defaults-file="%MYSQL_HOME%my.ini"net start mysql@echo offif exist "%CATALINA_HOME%" go startupecho Cannot find "CATALINA_HOME%":startupcall "%CATALINA_HOME%binstartup.bat" start
最后
以上就是耍酷外套为你收集整理的使用bat安装配置mysql_bat设置环境变量 启动mysql非安装版服务 启动tomcat(转)的全部内容,希望文章能够帮你解决使用bat安装配置mysql_bat设置环境变量 启动mysql非安装版服务 启动tomcat(转)所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复