2021年9月

解决bat中文乱码

在bat文件开头加上如下代码:

chcp 65001

主动获取管理员权限

方案一(推荐,自动关闭第一个弹窗):
在bat文件开头加上如下代码:

@echo off&(cd/d "%~dp0")&(cacls "%SystemDrive%\System Volume Information" >nul 2>&1)||(start "" mshta vbscript:CreateObject^("Shell.Application"^).ShellExecute^("%~snx0"," %*","","runas",1^)^(window.close^)&exit /b)

方案二:
在bat文件开头加上如下代码:

%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit

百度脑图与xmind 8的区别:
百度脑图是在线版本,可以线上操作;
xmind是软件,本地操作更方便;
xmind排版更紧凑,较美观,方便阅读

总结:
平时直接使用xmind 8,不要使用其他版本或其他软件。

问题描述:昨晚发现自己的网站wlecho.com无法访问。

解决过程:刷新之后,可以访问,但是提示不安全,发现ssl到期。

解决办法:在宝塔面板上关闭此网站的ssl,只是用http。

后续:今天早上,组长在找接口不通的问题,发现问题也是ssl在昨天到期。

官网对于以zip方式安装的说明

Installing from ZIP

Unzip the zip archives into the folder of your choice. XAMPP is
extracting to the subdirectory "C:xampp" below the selected target

  1. Now start the file "setup_xampp.bat", to adjust the XAMPP
  2. to your system.

If you choose a root directory "C:" as target, you must not start
"setup_xampp.bat".

Like with the installer version, you can now use the "XAMPP Control
Panel" for additional tasks.

总结

以zip方式安装,如果不是装到c盘根目录,那么一定要执行setup_xampp.bat,否则apache不能启动,而且配置文件中的换行符都是linux的,用记事本打开的话,都没有换行。

xampp7.2系列最新版7.2.34的tomcat版本为7,因此,至少是7.3版本以上的xampp,tomcat版本才为8。

我推荐的xampp版本为7.3.29,其tomcat版本为8.5.69。

tomcat添加管理账号:

Edit the tomcat-users.xml file in the tomcat/conf subdirectory of your
XAMPP installation directory (typically C:xampp) and add the line
below, before the closing </tomcat-users> element:

<user username="admin" password="admin" roles="manager-gui,admin-gui"/>

结束。