systemctl实例
2019-04-24systemctl 经常用到,在centos 7.x和debian 8.x都有此命令。 阅读全文...
python实例
2019-04-24python print指定宽度。调用shell或系统命令 阅读全文...
sort实例
2019-04-241、按第5列排序
cat user.list |sort -t ',' -k 5 > user.txt
2、反向排序
cat a.txt|sort -r
3、ip排序
cat ip.txt |sort -t"." -k1,1n -k2,2n -k3,3n -k4,4n
sort -n -t. +0 -1 +1 -2 +2 -3 +3 -4 ip.txt
14.215.176.8
14.215.176.9
14.215.176.10
14.215.176.11
14.215.176.12 阅读全文...
Windows Update Blocker
2019-04-23Windows 10 offers less UI control over the updating behavior of the operating system than previous versions of Windows , There is no option to turn off Windows Updates using the Control Panel or Settings app in Windows 10, it checks for updates automatically and install any updates they find, 阅读全文...
openvpn easyrsa3 vars
2019-04-22# Choices are:
# cn_only - use just a CN value
# org - use the "traditional" Country/Province/City/Org/OU/email/CN format
#set_var EASYRSA_DN "org" 阅读全文...
file命令
2019-04-22file依赖文件
1、ldd /usr/bin/file
ldd /usr/bin/file
linux-vdso.so.1 => (0x00007ffde79f7000)
libmagic.so.1 => /usr/lib64/libmagic.so.1 (0x0000003fab200000)
libz.so.1 => /lib64/libz.so.1 (0x0000003faae00000)
libc.so.6 => /lib64/libc.so.6 (0x0000003fa9e00000)
/lib64/ld-linux-x86-64.so.2 (0x000055f17918f000)
2、ldd file.exe
cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
cygmagic-1.dll => /usr/bin/cygmagic-1.dll (0x3ff9d0000)
cygz.dll => /usr/bin/cygz.dll (0x3ff3d0000) 阅读全文...
appwiz.cpl
2019-04-22Win+R运行,输入appwiz.cpl,打开添加删除程序。 阅读全文...
str1=${1:-crl.pem}
2019-04-16#!/bin/sh
CRL=${1:-crl.pem}
openssl crl -text -noout -in "$CRL" 阅读全文...
linux下删除-号开头的文件
2019-04-16linux删除特殊符号开头的文件 阅读全文...
openvpn吊销客户端证书
2019-04-16用户证书吊销后,登陆OpenVPN显示VERIFY ERROR: depth=0, error=CRL has expired。 OpenSSL: error:140890B2:SSL routines:SSL3_GET_CLIENT_CERTIFICATE:no certificate returned,TLS_ERROR: BIO read tls_read_plaintext error,TLS Error: TLS object -> incoming plaintext read error,TLS Error: TLS handshake failed,Fatal TLS error (check_tls_errors_co), restarting。 阅读全文...
nginx禁止未绑定域名访问
2019-04-16对于未绑定的域名指向你的服务器时,匹配不到你配置的虚拟主机域名后,会默认使用这个虚拟主机,然后直接返回404。 阅读全文...
openldap用户和本地用户
2019-04-12如果user同时存在,密码且不相同,两个密码都可以登陆。 阅读全文...
openldap增加密码策略
2019-04-11OpenLDAP的密码控制策略很强大: 阅读全文...
openldap-server增加group分组
2019-04-11openldap-server安装好之后,用ldapadd增加几个目录为了管理用户和分组分组,然后就可以用ldapadmin登陆管理openldap了。 阅读全文...
openldap-client安装和配置
2019-04-11centos8-openldap客户端安装 阅读全文...