- 博客(26)
- 收藏
- 关注
原创 光猫tag/untag/transparent和路由器tag/untag/transparent测试
tag、untag、transparent
2022-04-09 12:17:49
4409
原创 wireshark 捕获过滤器抓不到东西 Capture filter does not work
最近工作中发现wireshark 的捕获过滤抓不到东西,原因在于电脑网卡开启了 802.1Q vlan tagging,具体写过滤式要分以下两种情况:网卡开启vlan捕获 PPPoEvlan && pppoes && port 80捕获 IPoEvlan && port 80网卡关闭vlan捕获 PPPoEpppoes && port 80捕获 IPoEport 80...
2021-03-12 14:10:22
1982
原创 我的gVim配置
"字体set guifont=DejaVu\ Sans\ Mono:h10"不显示菜单栏set guioptions-=T"读文件时的编码set fileencodings=ucs-bom,utf-8,chinese,cp936"写文件时的编码set fileencoding=utf-8"显示行号set number"Tab键显示的空格数set tabstop=2"缩进空格数set shiftwidth=4"高亮光标所在行"set cursorline"搜索.
2020-12-28 10:16:02
240
原创 Linux SFTP
开启FTP服务[root@bogon ~]# yum install vsftpdLoaded plugins: fastestmirror, langpacksLoading mirror speeds from cached hostfile * base: mirrors.huaweicloud.com * extras: mirrors.huaweicloud.com * u...
2020-12-26 10:49:48
138
原创 PPPoE 报文实例
PPPoE是对PPP的扩展,提供了在以太网上建立PPPoE会话以及封装PPP数据帧的方法。客户端:Shenzhen_a0:d5:51服务端:HuaweiTe_1c:bb:c8 - 完整报文如下:PPPoE Discovery 1. PADT 2. PADI 3. PADO 4. PADR 5. PADSPPPoE Sessionsession阶段又可细分为LCP,PAP或者CHAP,NCP 3个小阶段LCP:主要完成最大传输单元和认证方式协商PA
2020-12-26 10:43:38
1923
原创 数字签名
数字签名(Signature)发送报文时,发送方用一个哈希函数从报文文本中生成报文摘要,然后用自己的私人密钥对这个摘要进行加密,这个加密后的摘要将作为报文的数字签名和报文一起发送给接收方,接收方首先用与发送方一样的哈希函数从接收到的原始报文中计算出报文摘要,接着再用发送方的公用密钥来对报文附加的数字签名进行解密,如果可以解密,则确认是发送方,如果两个摘要相同、那么接收方就能确认报文是完整的。h...
2018-11-30 14:44:17
209
原创 auto.master
AUTO.MASTER(5) File Formats Manual AUTO.MASTER(5)NAME auto.master - Master Map for automounte...
2018-11-22 15:46:29
980
原创 好的学习资料
在学习的过程中,发现一些好的资料,特此记录。Firewalld http://www.excelib.com/article/287/show/`Iptables http://www.zsythink.net/archives/tag/iptables/
2018-11-11 11:55:00
260
原创 书签的 permalink
目录wordpress/wp-content/themes/zerif-lite/content-single.php注释以下代码,不显示书签的 permalink 74 /* 75 printf( 76 77 $meta_text, 78 $category_list, ...
2018-11-07 10:48:58
223
原创 nextcloud 登陆不了,无限循环
记录:原因是web、php 和/var/lib/php/session/不是同一个用户/var/lib/php/session/[root@vm-centos html]# ls -l /var/lib/php/total 8drwxrwx---. 2 root apache 4096 Oct 12 03:27 sessiondrwxrwx---. 2 root apache 4096...
2018-11-04 23:07:06
9645
7
原创 epel & webtatic & mysql
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmrpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
2018-11-04 15:45:30
386
转载 Nextcloud 之 Selinux
记录[root@server ~]# semanage fcontext -l | grep cloud/etc/owncloud(/.*)? all files system_u:object_r:httpd_sys_rw_content_t:s0/usr/bin/cloud-init ...
2018-11-04 14:20:24
519
原创 Apache不能解析php,和配置文件无关
做个记录[root@vm-centos conf.d]# rpm -ql mod_php72w/etc/httpd/conf.d/php.conf/etc/httpd/conf.modules.d/10-php.conf/usr/lib64/httpd/modules/libphp7-zts.so/usr/lib64/httpd/modules/libphp7.so/usr/shar...
2018-11-04 02:44:46
5134
5
原创 Apache SSL模块
yum安装ssl模块[root@server html]# yum search mod_ssl查看安装好的模块[root@server modules]# ls -l /etc/httpd/modules/mod_ssl.so-rwxr-xr-x. 1 root root 215104 Mar 20 2014 /etc/httpd/modules/mod_ssl.so[root@s...
2018-11-04 00:43:44
639
原创 自签名生成证书
[root@vm-centos ssl]# openssl req -x509 -nodes -newkey rsa:2048 -keyout server-key.pem -out server-crt.pem -days 365Generating a 2048 bit RSA private key...+++.........................................
2018-11-03 00:39:25
544
原创 Nginx的一个简单配置
做个备份#server {# listen 80;# server_name xxx.xxx.xxx;# location / {# return 301 https://$host$request_uri;# }#}server { listen 80; listen 443 ssl h...
2018-11-03 00:31:41
296
原创 修改WordPress Zerif主题页脚不显示 Zerif Lite developed by ThemeIsle
注意:修改任何文件前最好做备份,以防万一我不是前端,不懂web,以下方法是瞎琢磨出来的Zerif Lite是一个非常漂亮的主题,但是免费版的页脚有两个问题:页脚显示 Zerif Lite developed by ThemeIsle如果只是不显示 Zerif Lite developed by ThemeIsle 方法如下:找到wordpress/wp-content/them...
2018-10-28 00:48:30
2077
原创 rpc mount export: RPC: Unable to receive; errno = No route to host
showmount 显示rpc mount export: RPC: Unable to receive; errno = No route to host原因是:服务端 mountd服务没有添加到防火墙showmount 显示clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route...
2018-10-24 00:31:50
2673
原创 ssh-key
[root@localhost ~]# ssh-keygen -t rsa -b 2048 -P '' -f ~/.ssh/id_rsaGenerating public/private rsa key pair.Your identification has been saved in /root/.ssh/id_rsa.Your public key has been saved in ...
2018-09-10 14:10:03
222
转载 CentOS 7 Minimal Desktop installation
来源: https://linuxconfig.org/install-gnome-gui-on-rhel-7-linux-server[root@vm-server ~]# yum groups install "Server with GUI"Just because gnome desktop environment is a default GUI on RHEL 7 l...
2018-09-09 14:19:31
562
原创 Configure VNC on CentOS 7.5
实验环境: RHEL7.5 模拟给两个用户 jerry、tom 配置vncNoteUnlike in previous Red Hat Enterprise Linux distributions, TigerVNC in Red Hat Enterprise Linux 7 uses the systemd system management daemon for its configu...
2018-09-09 14:04:01
1293
原创 Python 的list对象方法
Python 的list对象方法:list.append(x) 把一个元素添加到列表的结尾,相当于 a[len(a):] = [x]。list.extend(L) 将一个给定列表中的所有元素都添加到另一个列表中,相当于 a[len(a):] = L。list.insert(i, x) 在指定位置插入一个元素。第一个参数是准备插入到其前面的那个元素的索引,例如 a.insert(0,...
2018-09-07 22:11:09
1534
原创 Python学习—字符串切片
# 练习题,去除字符串首尾的空格,不要调用str的strip()def trim(s): while s[0] == ' ': s = s[1:] continue while s[-1] == ' ': s = s[:-1] continue return ss1 = ' hello's2 = '...
2018-05-01 15:53:21
346
原创 Python学习—List
# 先定义3个listlist1 = ['ABC', '123', 'DEF', '456']list2 = [5, 30, 25, 45, 10]list3 = []# list操作符: + * inprint('list操作符')print('list1 = %r | list2 = %r | ' % (list1, list2), end=' ')print('list1...
2018-04-30 00:06:55
302
原创 Terminal Emulator and Virtual Terminal
Terminal EmulatorsWhen using a graphical user interface, we need another program called a terminal emulator to interact with the shell. If we look through our desktop menus, we will probably find on...
2018-03-15 14:04:09
574
转载 人生若只如初见
转载: 人生若只如初见,何事秋风悲画扇?等闲变却故人心,却道故人心易变。 骊山语罢清宵半,夜雨霖铃终不怨。何如薄幸锦衣儿,比翼连枝当日愿。 人生若只如初见。短短七个字,道尽多少悲凉的尾巴。初初相识,人若孔雀,本能的尽极绚丽,礼貌羞涩着收敛脾气,绽放美好。而那些观者也大都怀着欣赏,暗暗叫好,怜爱有加。久已,孔雀颓累,羽翼渐退,间或,还会转身,留一光...
2009-12-21 22:59:00
502
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人