1.下载pyenv源码 git clone https://gitee.com/krypln/pyenv.git ~/.pyenv 2.将pyenv 的路径写入配置文件 #>echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc #>echo 'ex ...
分类:
其他好文 时间:
2021-04-07 11:21:37
阅读次数:
0
Spring里的占位符spring里的占位符通常表现的形式是: <bean id="dataSource" destroy-method="close" class="org.apache.commons.dbcp.BasicDataSource"> <property name="url" val ...
分类:
编程语言 时间:
2021-04-07 11:19:32
阅读次数:
0
RCE root权限执行命令,无法读取密码的情况下 1:在受害者机子上执行如下命令,开启认证 # echo RSAAuthentication yes >> /etc/ssh/sshd_config # echo PubkeyAuthentication yes >> /etc/ssh/sshd_c ...
分类:
系统相关 时间:
2021-04-07 11:05:28
阅读次数:
0
SpringMVC web.xml 前端控制器servlet 中文乱码拦截器filter 支持rest风格的过滤器 spring-mvc.xml 扫描controller包 添加 视图解析器 静态资源拦截器 添加controller层 spring spring-core.xml 扫描除了contr ...
分类:
其他好文 时间:
2021-04-07 10:56:25
阅读次数:
0
初次学习mybatis,跑一个最简单的demo,然而报错: java.sql.SQLException: Error setting driver on UnpooledDataSource. Cause: java.lang.ClassNotFoundException: Cannot find ...
分类:
数据库 时间:
2021-04-06 14:48:09
阅读次数:
0
参考 https://blog.51cto.com/13475106/category6.html及狄泰软件相关课程 一.整体的设计 从上图可以得到一个问题,为什么不能从boot直接加载kernnel,并跳转运行?该设计的思路1.boot必须小于512字节,无法完成过多功能2.kernel需要运行于 ...
分类:
其他好文 时间:
2021-04-06 14:44:49
阅读次数:
0
部署prometheus监控端mkdir /opt/monitor/[root@zabbix ~]# tar -xf prometheus-2.25.0.linux-amd64.tar.gz -C /opt/monitor/[root@zabbix ~]# mv prometheus-2.25.0. ...
分类:
其他好文 时间:
2021-04-06 14:27:18
阅读次数:
0
Linux下su与su -命令的本质区别 su命令和su -命令最大的本质区别就是: 前者只是切换了root身份,但Shell环境仍然是普通用户的Shell; 而后者连用户和Shell环境一起切换成root身份了。只有切换了Shell环境才不会出现PATH环境变量错误。su切换成root用户以后,p ...
分类:
系统相关 时间:
2021-04-06 14:01:20
阅读次数:
0
1 安装 sudo apt-get install zsh 2 修改默认shell chsh -s /bin/zsh 3 配置passwd sudo vim /etc/passwd root:x:0:0:root:/root:/bin/bash改成root:x:0:0:root:/root:/bin ...
分类:
系统相关 时间:
2021-04-05 12:42:45
阅读次数:
0
(1) 电脑没有Hyper-V pushd "%~dp0" dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do d ...