摘要: ~/.vimrc 零、批量注释与反注释 :sp / :vsp 横向 / 纵向拆分窗口 :e 打开新文件 zc:拆叠代码 / zo:展开代码 set foldmethod=marker "代码拆叠模式:zf10G(从当前行拆叠到第10行)、10zf+(从当前行位置向下拆叠10行)、10zf-(从当前行 阅读全文
posted @ 2017-01-02 17:39 范辉 阅读(1112) 评论(0) 推荐(0) 编辑
摘要: ;; 创建 vm: 管理 vm: ls -al /dev/vmm bhyvectl --destroy --vm=guest_Name 配置文件: /etc/sysctl.conf net.link.tap.up_on_open=1 net.link.tap.up_on_open=1 /boot/l 阅读全文
posted @ 2016-11-23 08:11 范辉 阅读(532) 评论(0) 推荐(1) 编辑
摘要: 一、使用 svn / svnlite 代替 freebsd-update 及 portsnap 等常规工具更新系统及 ports 源码 二、安装可信 ca 机构列表 cd /usr/ports/security/ca_root_nss make install clean 三、可使用系统自带的轻量级 阅读全文
posted @ 2016-11-21 12:15 范辉 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 内核支持 方式一:静态編译进内核 options IPFIREWALL # enables IPFW options IPFIREWALL_VERBOSE # enables logging for rules with log keywordoptions IPDIVERT # enables N 阅读全文
posted @ 2016-11-19 23:00 范辉 阅读(1099) 评论(0) 推荐(0) 编辑
摘要: 相关概念 EVENT 事件,审计系统计录的对象,包括用户登陆、网络与文件操作等各方面 CLASS 类,对具有相同或类似属性的事件的分組 RECORD 记录,审计系统生成的日志中的每一条信息 TRAIL 账目,即日志文件 SELECTION EXPRESSION 筛选表达式,用于提取有效审计信息的語法 阅读全文
posted @ 2016-11-18 23:07 范辉 阅读(526) 评论(0) 推荐(0) 编辑
摘要: sysctl 常见参数 # 常用于脚本中抓取参数值 阅读全文
posted @ 2016-11-17 23:07 范辉 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 参考資料 http://docs.oracle.com/cd/E37934_01/html/E36658/toc.html https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/zfs.html 内核支持 方式一:ZFS 静态編译进内核 阅读全文
posted @ 2016-11-16 08:36 范辉 阅读(2787) 评论(0) 推荐(0) 编辑
摘要: 特别提醒:自行定制的内核,必須经过全方位测试无誤后,方能用于生产环境 基于:/usr/src/sys/amd64/conf/GENERIC ... 阅读全文
posted @ 2016-11-15 08:41 范辉 阅读(1898) 评论(0) 推荐(0) 编辑
摘要: 一、Network Servers DNS unbound/local_unbound # /etc/rc.conf local_unbound_enable="YES" # 测试指定 DNS 服务器是否畅通且启用安全特性(DNSSEC),测试通过的 DNS 服务器地址可保留在 /etc/resol 阅读全文
posted @ 2016-11-14 14:27 范辉 阅读(695) 评论(0) 推荐(0) 编辑
摘要: 一、Managing Services in FreeBSD Service restart will only work if it is set to YES in /etc/rc.conf. To start, stop or restart a service regardless of t 阅读全文
posted @ 2016-11-13 22:21 范辉 阅读(2345) 评论(0) 推荐(0) 编辑
摘要: 一、首先安装 Xorg 安装 xorg pkg install xorg pkg install xorg 清除旧文件(如果已前安装过 xorg) /etc/X11/xorg.conf /usr/local/etc/X11/xorg.conf /usr/local/etc/X11/xorg.conf 阅读全文
posted @ 2016-11-13 14:28 范辉 阅读(1041) 评论(0) 推荐(0) 编辑
摘要: Tips: sysctl -d kern.maxvnodes #查看系统控制选项的含义 true > file #清空文件内容 alias ls 'ls -I(大写i)' #取消 root 的 ls 自动显示隐匿文件 在线查詢 ports 库中的软件包信息 http://www.freebsd.or 阅读全文
posted @ 2016-11-12 15:54 范辉 阅读(695) 评论(0) 推荐(0) 编辑
摘要: Initramfs An initramfs (initial ram file system) is used by Linux systems to prepare the system during boot before the operating systems'init process 阅读全文
posted @ 2016-09-06 15:59 范辉 阅读(9601) 评论(0) 推荐(1) 编辑
摘要: 『Linux Capability』 For the purpose of performing permission checks, traditional UNIX implementations distinguish two categories of processes: privileg 阅读全文
posted @ 2016-09-04 22:23 范辉 阅读(1102) 评论(0) 推荐(0) 编辑
摘要: EtherChannel最初是由cisco提出,通过聚合多条物理链路为单条逻辑链路,从而实现高可用及提高吞吐量等目的。AgP(Port Aggregation Protocol,Cisco专有协议)、LACP(IEEE 802.3ad)是应用最广泛的两种实现。Linux中的实现称为Bonding,H 阅读全文
posted @ 2016-09-04 22:15 范辉 阅读(3429) 评论(0) 推荐(0) 编辑