上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页
摘要: http://www.networkinghowtos.com/howto/change-the-iptables-log-file/ http://www.networkinghowtos.com/howto/change-the-iptables-log-file/ An important a 阅读全文
posted @ 2017-11-20 17:14 于光远 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 出现:error: openssl/md5.h: No such file or directory 原因是libssl-dev 没有安装,执行: sudo apt-get install libssl-dev 就可以了 如果还报错: MD5.cpp:(.text+0xd): undefined r 阅读全文
posted @ 2017-11-15 15:24 于光远 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 生成公钥私钥 使用命令生成私钥 参数:genrsa 生成密钥 -out 输出到文件 rsa_private_key.pem 文件名 1024 长度 从私钥中提取公钥: shell加解密 使用公钥加密: 参数: rsautl 加解密 -encrypt 加密 -in 从文件输入 a.txt 文件名 -i 阅读全文
posted @ 2017-11-06 10:29 于光远 阅读(1078) 评论(0) 推荐(0) 编辑
摘要: ubuntu@ubuntu-vm:~/workspace/encryption$ g++ main.cpp ubuntu@ubuntu-vm:~/workspace/encryption$ ./a.out enc -des -e -a -in main.cpp -out aaubuntu@ubunt 阅读全文
posted @ 2017-11-03 12:23 于光远 阅读(4253) 评论(0) 推荐(0) 编辑
摘要: 一、 利用 vim/vi 加密:优点:加密后,如果不知道密码,就看不到明文,包括root用户也看不了;缺点:很明显让别人知道加密了,容易让别人把加密的文件破坏掉,包括内容破坏和删除; vi编辑器相信大家都很熟悉了吧,vi里有一个命令是给文件加密的,举个例子吧:1) 首先在root主目录/root/下 阅读全文
posted @ 2017-11-03 09:39 于光远 阅读(3780) 评论(0) 推荐(0) 编辑
摘要: vector v; sort(v.begin(),v.end()); v.erase(unique(v.begin(), v.end()), v.end()); 阅读全文
posted @ 2017-10-31 10:13 于光远 阅读(2246) 评论(0) 推荐(0) 编辑
摘要: ubuntu@ubuntu-vm:~/workspace/template$ g++ main.cpp --std=c++11ubuntu@ubuntu-vm:~/workspace/template$ ./a.out 4 阅读全文
posted @ 2017-10-23 15:37 于光远 阅读(198) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/xianjie0318/article/details/75712990 1.按内存从大到小排列进程: ps -eo "%C : %p : %z : %a"|sort -k5 -nr 2查看当前有哪些进程;查看进程打开的文件: ps -A ;lsof -p 阅读全文
posted @ 2017-10-08 15:27 于光远 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 跳跃表(英文名:Skip List),于 1990 年 William Pugh 发明,是一个可以在有序元素中实现快速查询的数据结构,其插入,查找,删除操作的平均效率都为 。 跳跃表的整体性能可以和二叉查找树(AVL 树,红黑树等)相媲美,其在 Redis 和 LevelDB 中都有广泛的应用。 每 阅读全文
posted @ 2017-09-29 15:49 于光远 阅读(871) 评论(0) 推荐(0) 编辑
摘要: http://www.blogjava.net/fjzag/articles/317773.htmlubuntu@ubuntu-vm:/work/sv-g5-application/projects/sysmonitor/src$ cat SVPSysMonitor.cpp /*##########################################################... 阅读全文
posted @ 2017-07-11 10:19 于光远 阅读(261) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页