在Tomcat安装目录下的bin目录下找到setclasspath.sh,在最开始添加以下代码 export JAVA_HOME="/home/jdk-1.8" export JRE_HOME="/home/jdk-1.8/jre"
如何给Tomcat指定JDK和JRE
Spring Boot配置Redis哨兵模式连接
spring: redis: database: 0 # host: 127.0.0.1 # 哨兵模式无效youxiao port: 6379 password: root # 哨兵模式有效 # 连接超时时长(毫秒) pingInterval: 100000 timeout...
Redis哨兵模式执行select 0命令报错: (error) ERR unknown command select, with args beginning with:0
报错信息 Redis哨兵模式执行select 0命令报错。 (error) ERR unknown command select, with args beginning with: 0 解决办法 三个node节点为:10.12.168.68:6395,10.12.168.69:6395,10.12.168.70:6396 redis-cli -h 10.12.168.68 -p 639...
Maven连接私服如何配置
Maven的setting.xml文件配置,该配置中使用了一个id为nexusProfile的profile,这个profile包含了相关的仓库配置,同时配置中又使用了activeProfile元素将这个profile激活,这样当执行Maven构件的时候,激活的profile会将仓库配置应用到项目中去。 <profiles> <profile> ...
JQuery格式化时间
$(function(){ alert(getDateString(new Date("2022-04-19"))); }); function getDateString(time) { var datetime = new Date(); datetime.setTime(time); var year = datetime.getFullYear();...
Kali拿取路由器pin码
网卡监听模式 airmon-ng start wlan0 扫描 wash -i wlan0mon 跑pin 网卡 物理地址 信道 reaver -i wlan0mon -b 00:5A:13:40:AA:F8 -c 11 -vv -K 0 通过pin获得wifi密码 网卡 ...
Kali暴力破解wifi密码
查看本机网卡名称 ifconfig eth0有线网卡 wlan0无线网卡 虚拟机无法访问网卡,所以需要使用外接的USB无线网卡。 查看是否支持监听模式 airmon-ng 如果该命令没有任何输出则表示没有可以支持监听模式的网卡。 开启无线网卡的监听模式 airmon-ng start wlan0 如果airmon-ng显示的是wifi0,就把wlan0改为wif...
如何去除有道云笔记广告
一、适用于6.0之前版本 你只需要找到有道云笔记的安装路径*\Youdao\YoudaoNote\theme\build.xml,把下面的代码删掉 <PanelAd type="adpanel" css="public" ass="mainform panelclient PanelAd"> <panelTopLine type="panel" css="...
如何查看和修改Redis密码
打开redis.windows.conf文件,默认是没有requirepass root这句话的,因为默认密码是”“,加上这句话意思就是密码修改为root。
Redis启动报错:The Windows version of Redis allocates a memory ...
报错信息 The Windows version of Redis allocates a memory mapped heap for sharing with the forked process used for persistence operations. In order to share this memory, Windows allocates from the sys...