Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | Email

Netkiller Linux 手札

Netkiller Linux Cookbook

Mr. Neo Chan, 陈景峰 (BG7NYT)

 


中国广东省深圳市宝安区龙华镇
518109
+86 755 29812080
+86 755 29812080

版权声明

转载请与作者联系,转载时请务必标明文章原始出处和作者信息及本声明。

文档出处:
http://netkiller.github.io
http://netkiller.sourceforge.net

微信扫描二维码进入 Netkiller 微信订阅号

QQ群:128659835 请注明“读者”

内容摘要

本文档讲述Linux系统涵盖了系统管理与配置包括:

[注意]对初学Linux的爱好者忠告

玩Linux最忌reboot(重新启动)这是windows玩家坏习惯

Linux只要接上电源你就不要再想用reboot,shutdown,halt,poweroff命令,Linux系统和应用软件一般备有reload,reconfigure,restart/start/stop...不需要安装软件或配置服务器后使用reboot重新引导计算机

在Linux系统里SIGHUP信号被定义为刷新配置文件,有些程序没有提供reload参数,你可以给进程发送HUP信号,让它刷新配置文件,而不用restart.通过pkill,killall,kill 都可以发送HUP信号例如: pkill -HUP httpd


鸣谢

目录

1. 自述
1.1. 本文目的
1.2. 内容简介
1.3. 读者对象
1.4. 作者简介
I. System Administrator
1. Introduction
1.1. Linux 发行版本
1.1.1. Debian 衍生版本
1.1.2. Redhat 衍生版本
1.1.3. FreeBSD 包风格的Linux 发行版
1.1.4. Linux 下载排名
1.2. Distribution information
1.3. Linux Installation
1.3.1. HDD Partition
1.4. System Infomation
1.4.1. Cpu Bit
1.5. shutdown
1.6. Profile
1.6.1. shell
2. Kernel
2.1. 编译安装内核
2.2. sysctl - configure kernel parameters at runtime
2.2.1. sysctl.d
2.2.2. vm.overcommit_memory
2.3. /sys
2.3.1. /sys/class/net/
2.4. /proc
2.4.1. 进程内存监控
2.4.2. ulimit 状态
3. Package Management
3.1. apt-cache
3.1.1. search
3.1.2. depends
3.1.3. policy
3.2. Apt-Get
3.2.1. Search
3.2.2. Installation
3.2.3. Update
3.2.4. Remove
3.3. aptitude
3.4. Automatic Updates
3.5. dpkg
3.5.1. -i|--install 安装.deb包
3.5.2. -r|--remove 卸载.deb包
3.5.3. -L|--listfiles <package> ... List files `owned' by package(s). 列出包中的文件
3.5.4. -l|--list [<pattern> ...] List packages concisely. 列出.deb包
3.5.5. Status
3.5.6. dpkg-deb - Debian package archive (.deb) manipulation tool
3.5.7. dpkg-reconfigure
3.6. Upgrading
3.6.1. GUI
3.6.2. CLI
3.6.3. CDROM
3.7. 制作.deb安装包
3.7.1. checkinstall — Track installation of local software, and produce a binary manageable with your package management software.
3.7.2. dh_make - prepare Debian packaging for an original source archive
3.7.3. control
4. Device information
4.1. dmesg - print or control the kernel ring buffer
4.2. smartctl - Control and Monitor Utility for SMART Disks
4.3. lspci - list all PCI devices
4.4. lshw - list hardware
4.4.1. only show a certain class of hardware
4.5. hwinfo - Hardware Information
4.6. dmidecode - DMI table decoder
4.7. ethtool - Display or change ethernet card settings
4.8. usb device
4.9. lsscsi - list SCSI devices (or hosts) and their attributes
4.10. HBA
4.11. lsblk - list block devices
4.12. kudzu - detects and configures new and/or changed hardware on a system
5. udev - Linux dynamic device management
6. Kernel modules
6.1. modprobe - program to add and remove modules from the Linux Kernel
7. Locale
7.1. time zone
7.2. to change system date/time
7.2.1. NTP Server
7.3. Language
8. console / terminal
8.1. serial console
8.2. console timeout
8.3. TUI (Text User Interface)
8.4. framebuffer
9. Harddisk
9.1. 查看分区分区 UUID
9.2. Label
9.2.1. Ext2
9.3. 临时增加 swap 分区
9.4. Show partition
9.5. Create partition
9.6. Clone partition
9.7. Format partition
9.7.1. ext3
9.7.2. ReiserFS
9.8. estimate disk / directory / file space usage
9.9. Convert from ext3 to ext4 File system
9.10. GPT
9.10.1. 设置GTP磁盘
9.10.2. 查看分区
9.10.3. 创建分区
9.10.4. 删除分区
9.10.5. 退出
9.10.6. mount
9.11. loop devices
9.11.1. losetup - set up and control loop devices
10. Removable Storage
10.1. usb flash
10.2. CD / DVD
10.2.1. Mount an ISO file
10.2.2. create iso file from CD
10.2.3. burner
10.2.4. ISO Mirror
11. File System
11.1. /etc/fstab
11.1.1. /etc/fstab 例子
11.2. Mount partition
11.2.1. Mount
11.2.2. Umount
11.2.3. bind directory
11.3. RAM FS
11.4. tmpfs
11.5. ftp fs
11.6. SSHFS (sshfs - filesystem client based on SSH File Transfer Protocol)
11.7. davfs2 - mount a WebDAV resource as a regular file system
11.8. redisfs
11.9. File system test
11.9.1. ext4 vs btrfs
11.9.2. xfs vs jfs vs reiserfs
11.9.3. RAID10 (146G*8) vs EMC VNX 5300 (8G Fibre Channel)
11.9.4. Dell 2950(RAID5 500G SATA * 6) vs MD1200
11.10. 磁盘占用100%删除文件后不是放的解决方法
12. Networking
12.1. Hostname
12.1.1. /etc/hostname
12.1.2. /etc/host.conf
12.1.3. /etc/hosts
12.1.4. hosts.allow / hosts.deny
12.1.5. /etc/resolv.conf
12.2. Network adapter
12.2.1. 接口名称
12.3. Ethernet Interfaces
12.3.1. ifquery
12.3.2. DHCP
12.3.3. Static IP
12.4. Mask
12.5. Gateway
12.6. Configuring Name Server Lookups
12.7. IP forwarding(IP转发)
12.8. bonding
12.8.1. Ubuntu
12.9. Finding optimal MTU
12.10. wireless
12.10.1. rfkill - tool for enabling and disabling wireless devices
12.10.2. iwlist - Get more detailed wireless information from a wireless interface
12.10.3. iwconfig - configure a wireless network interface
12.10.4. /proc/net/wireless
13. Logging
13.1. rsyslog
13.1.1. rsyslog.conf
13.2. logrotate - rotates, compresses, and mails system logs
13.2.1. /etc/logrotate.conf
13.2.2. /etc/logrotate.d/
13.3. syslog-ng
13.4. syslog, klogctl - read and/or clear kernel message ring buffer; set console_loglevel
13.4.1. /etc/sysconfig/syslog
13.4.2. /etc/syslog.conf
13.4.3. logger
13.4.4. To Log Messages Over UDP Network
14. Service
14.1. update-rc.d - install and remove System-V style init script links
14.2. invoke-rc.d - executes System-V style init script actions
14.3. runlevel
14.4. sysv-rc-conf
14.5. xinetd - replacement for inetd with many enhancements
14.5.1. tftpd
14.6. Scheduled Tasks
14.6.1. crontab - maintain crontab files for individual users
14.6.2. at, batch, atq, atrm - queue, examine or delete jobs for later execution
14.7. sv - control and manage services monitored by runsv
14.7.1. runsv
14.7.2. runsvdir
15. Process
15.1. top - display Linux tasks
15.2. ps - report a snapshot of the current processes
15.2.1. ps axef
15.2.2. ps -eo pid,cmd
15.2.3. ps jax
15.2.4. zombie process
15.3. mpstat
15.4. pstree - display a tree of processes
15.5. pid
15.5.1. pgrep, pkill - look up or signal processes based on name and other attributes
15.5.2. pidof -- find the process ID of a running program.
15.6. jobs
15.6.1. &
15.6.2. Ctrl + Z
15.6.3. jobs
15.6.4. fg / bg
15.6.5. nohup - run a command immune to hangups, with output to a non-tty
15.7. ionice - get/set program io scheduling class and priority
15.8. /proc 目录与进程的关系
15.8.1. /proc/*/fd/ 进程所打开的文件
16. Permission
16.1. User
16.1.1. Add a new user
16.1.2. remove an existed user
16.1.3. usermod - modify a user account
16.1.4. lock / unlock
16.2. Group
16.2.1. Add a new group
16.2.2. Add a user to the group
16.2.3. /etc/group
16.3. umask
16.4. Access Permissions
16.4.1. chown - change file owner and group
16.4.2. chgrp - change group ownership
16.4.3. chmod - change file access permissions
16.5. chattr - change file attributes on a Linux second extended file system
16.6. su - run a shell with substitute user and group IDs
16.7. sudo, sudoedit - execute a command as another user
16.7.1. NOPASSWD
16.7.2. 允许或禁止命令
16.7.3. Cmnd_Alias 用法
16.8. ACL - Access Control List
16.8.1. getfacl - get file access control lists
16.8.2. setfacl - set file access control lists
16.8.3. backup and restore
17. /etc
17.1. /etc/inputrc
17.2. /etc/shells
II. Shell
18. Bash Shell
18.1. bash - GNU Bourne-Again SHell
18.1.1. -n 检查脚本是否有语法错误
18.1.2. -x 显示详细运行过程
18.2. Introduction
18.2.1. chsh - change login shell
18.2.2. test 命令
18.2.3. I/O 重定向
18.2.4. pipes (FIFOs)
18.2.5. mktemp - create a temporary file or directory 临时目录与文件
18.2.6. History 命令历史记录
18.2.7. hash - hash database access method
18.2.8. prompt
18.3. variable
18.3.1. 表达式
18.3.2. Internal Environment Variables
18.3.3. set 设置变量
18.3.4. unset 变量销毁
18.3.5. 设置变量默认值
18.3.6. export 设置全局变量
18.3.7. declare
18.3.8. 系统变量
18.3.9. Numerical 数值运算
18.3.10. Strings 字符串操作
18.3.11. Array 数组
18.3.12. eval
18.4. conditions if and case
18.4.1. if
18.4.2. case
18.5. Loops for, while and until
18.5.1. for
18.5.2. while
18.5.3. until
18.6. Functions
18.6.1. Local variables
18.7. User interfaces
18.7.1. input
18.8. Example
18.8.1. 有趣的Shell
18.8.2. backup
18.8.3. CPU 核心数
18.8.4. Password
18.8.5. processes
18.8.6. Shell 技巧
18.8.7. to convert utf-8 from gb2312 code
18.8.8. 使用内存的百分比
18.8.9. 合并apache被cronlog分割的log文件
19. Z Shell
19.1. installing Z shell
19.2. Starting file
19.2.1. ~/.zshrc
19.3. Prompting
19.4. Aliases
19.5. History
19.6. FAQ
19.6.1. Home/End key
20. Shell command
20.1. Help Commands
20.1.1. man - an interface to the on-line reference manuals
20.2. getconf - Query system configuration variables
20.3. Directory and File System Related
20.3.1. dirname
20.3.2. filename
20.3.3. test - check file types and compare values
20.3.4. stat
20.3.5. mkdir - make directories
20.3.6. rename
20.3.7. touch
20.3.8. ls - list directory contents
20.3.9. cp - copy files and directories
20.3.10. rm - remove files or directories
20.3.11. df - report file system disk space usage
20.3.12. du - estimate file space usage
20.3.13. tac - concatenate and print files in reverse
20.3.14. split - split a file into pieces
20.3.15. find - search for files in a directory hierarchy
20.4. package / compress and decompress
20.4.1. tar — The GNU version of the tar archiving utility
20.4.2. cpio - copy files to and from archives
20.4.3. gzip
20.4.4. zip, zipcloak, zipnote, zipsplit - package and compress (archive) files
20.4.5. RAR
20.4.6. 7-Zip
20.5. date and time
20.5.1. 日期格式
20.5.2. -d --date=
20.5.3. weekday name
20.5.4. UTC
20.6. Numeric
20.6.1. 数值运算
20.6.2. seq - print a sequence of numbers
20.6.3. bc - An arbitrary precision calculator language
20.7. Text Processing
20.7.1. iconv - Convert encoding of given files from one encoding to another
20.7.2. 字符串处理命令expr
20.7.3. cat - concatenate files and print on the standard output
20.7.4. nl - number lines of files
20.7.5. od - dump files in octal and other formats
20.7.6. tr - translate or delete characters
20.7.7. cut - remove sections from each line of files
20.7.8. printf - format and print data
20.7.9. Free `recode' converts files between various character sets and surfaces.
20.7.10. /dev/urandom 随机字符串
20.7.11. col - filter reverse line feeds from input
20.7.12. apg - generates several random passwords
20.7.13. head/tail
20.7.14. grep, egrep, fgrep, rgrep - print lines matching a pattern
20.7.15. sort - sort lines of text files
20.7.16. uniq
20.7.17. 行列转换,表格操作
20.7.18. 反转字符串或文件内容
20.8. Logging
20.8.1. logger - a shell command interface to the syslog(3) system log module
20.9. Password
20.9.1. Shadow password suite configuration.
20.9.2. newusers - update and create new users in batch
20.9.3. chpasswd - update passwords in batch mode
20.10. binutils
20.10.1. strings - print the strings of printable characters in files.
22. Utility Programs
22.1. ed, red - text editor
22.2. vim
22.2.1. 查找与替换
22.2.2. 批处理
22.2.3. line()
22.3. CURL - transfer a URL
22.3.1. 基本用法
22.3.2. data
22.3.3. connect-timeout
22.3.4. compressed
22.3.5. vhosts
22.3.6. 输出格式定义
22.3.7. -A/--user-agent <agent string>
22.3.8. referer
22.3.9. -v
22.3.10. -o/--output <file>
22.3.11. -H/--header <line> Custom header to pass to server (H)
22.3.12. curl-config
22.3.13. FAQ
22.4. awk
22.4.1. 处理列
22.4.2. printf
22.4.3. Pattern(字符匹配)
22.4.4. Built-in Variables
22.4.5. Built-in Functions
22.4.6. 过滤相同的行
22.5. sed
22.5.1. 查找与替换
22.5.2. 编辑文件
22.5.3. 内容打印
22.5.4. 编辑操作
22.6. expect
22.6.1. 模拟登录 telnet 获取Cisco配置
22.6.2. 模拟登录 ssh
22.6.3. SCP
22.7. expect-lite - quick and easy command line automation tool
22.8. sshpass - noninteractive ssh password provider
22.9. Klish - Kommand Line Interface Shell (the fork of clish project)
22.9.1. 安装Klish
22.9.2. 为用户指定clish作为默认Shell
22.9.3. FAQ
22.10. Limited command Shell (lshell)
22.11. wget - retrieves files from the web
22.11.1. Logging and input file
22.11.2. HTTP options
22.11.3. Recursive download
22.11.4. --no-passive-ftp disable the "passive" transfer mode.
22.12. TUI
22.12.1. screen - screen manager with VT100/ANSI terminal emulation
22.12.2. tmux — terminal multiplexer
22.12.3. byobu - wrapper script for seeding a user's byobu configuration and launching a text based window manager (either screen or tmux)
22.12.4. htop - interactive process viewer
22.12.5. elinks
22.12.6. chat
22.13. parallel - build and execute shell command lines from standard input in parallel
23. Shell Terminal
23.1. terminal
23.1.1. resize - set TERMCAP and terminal settings to current xterm window size
23.1.2. tset, reset - terminal initialization
23.1.3. stty - change and print terminal line settings
23.2. tput
23.2.1. Change the prompt color using tput
23.3. dialog
23.3.1. --inputbox
23.4. whiptail - display dialog boxes from shell scripts
23.4.1. --msgbox
23.4.2. --infobox
23.4.3. --yesno
23.4.4. --inputbox
23.4.5. --passwordbox
23.4.6. --textbox
23.4.7. --checklist
23.4.8. --radiolist
23.4.9. --menu
23.4.10. --gauge
III. Network Application
24. network tools
24.1. curl / w3m / lynx
25. Linux IP And Router
25.1. netmask
25.1.1. iptab
25.1.2. netmask - a netmask generation and conversion program
25.2. arp - manipulate the system ARP cache
25.2.1. display hosts
25.2.2. delete a specified entry
25.2.3. /proc/net/arp
25.2.4. /etc/ethers
25.3. iproute2
25.3.1. 添加路由
25.3.2. 删除路由
25.3.3. 变更路由
25.3.4. 替换已有的路由
25.3.5. 增加默认路由
25.3.6. cache
25.4. 策略路由
25.5. 负载均衡
25.6. MASQUERADE
25.7. ip tunnel
25.8. VLAN
25.9. Zebra
26. OpenNTPD
26.1. install
26.2. ntpdate
26.3. ntpd.conf / ntp.conf
26.3.1. server 配置
26.3.2. ntp 安全设置
27. DHCP
27.1. DHCP Server
27.2. dhclient
27.3. release matching connections
28. DNS/Bind
28.1. 安装 bind9
28.2. forwarders
28.3. Load Balancing
28.4. view
28.5. Master / Slave
28.5.1. master /etc/named.conf
28.5.2. slave /etc/named.conf
28.5.3. FAQ
28.6. DNS tools
28.6.1. dig - DNS lookup utility
28.6.2. nslookup - query Internet name servers interactively
28.7. DNS
28.7.1. OpenDNS
28.7.2. Google DNS
28.8. NamedManager
29. dnsmasq
29.1. Install
29.1.1. CentOS / Redhat
29.1.2. Debian / Ubuntu
29.1.3. Firewall 设置
29.2. /etc/dnsmasq.conf
29.3. dnsmasq.resolv.conf
29.4. dnsmasq.hosts
29.5. /etc/dnsmasq.d/dnsmasq.server.conf
29.6. /etc/dnsmasq.d/dnsmasq.address.conf
29.6.1. 域名劫持
29.7. FAQ
30. rinetd — internet “redirection server”
30.1. rinetd install
30.1.1. ubuntu
30.1.2. centos
30.2. rinetd.conf
30.3. 防御脚本
30.4. rinetd.log
31. News Group (innd)
31.1. User Authentication
31.2. usenet 管理
31.3. 通过SSL连接
31.4. src.rpm 安装
31.5. 常用新闻组
32. IRC - Internet Relay Chat
32.1. IRC Protcol
32.2. IRC Commands
32.3. ircd-irc2 - The original IRCNet IRC server daemon
32.4. ircd-hybrid
32.5. IRC Client
32.5.1. ircII - interface to the Internet Relay Chat system
32.5.2. HydraIRC
32.5.3. XChat
32.5.4. Web IRC
32.5.5. Irssi - a modular IRC client for UNIX
32.5.6. F-IRC
33. jabber
33.1. ejabberd - Distributed, fault-tolerant Jabber/XMPP server written in Erlang
33.1.1. ejabberdctl
33.2. DJabberd
33.3. freetalk - A console based Jabber client
33.4. library
33.4.1. python-xmpp
34. Proxy Server
34.1. Apache Proxy
34.2. Squid - Internet Object Cache (WWW proxy cache)
34.2.1. 源码安装
34.2.2. debian/ubuntu 安装
34.2.3. 配置
34.2.4. Squid 管理
34.2.5. 禁止页面被Cache
34.2.6. Squid 实用案例
34.2.7. squid+icap+clamav
34.3. Web page proxy
34.3.1. Surrogafier
34.3.2. CGIproxy
34.3.3. PHPProxy
34.3.4. BBlocked
34.3.5. Glype
34.3.6. Zelune
34.4. SOCKS
34.4.1. Socks5
34.4.2. dante-server - SOCKS (v4 and v5) proxy daemon(danted)
34.4.3. SSH Socks5 Tunnel
34.4.4. hpsockd - HP SOCKS server
35. Firewall
35.1. TCP/IP 相关内核配置项
35.1.1. net.ipv4.ip_forward
35.1.2. net.ipv4.icmp_echo_ignore_all
35.2. iptables - administration tools for packet filtering and NAT
35.2.1. Getting Started
35.2.2. 用户自定义规则连
35.2.3. Protocols 协议
35.2.4. Interfaces 网络适配器接口
35.2.5. 源IP地址
35.2.6. Ports 端口
35.2.7. IPTables and Connection Tracking
35.2.8. NAT
35.2.9. Module(模块)
35.2.10. IPV6
35.2.11. iptables-xml - Convert iptables-save format to XML
35.2.12. access.log IP封锁脚本
35.2.13. Example
35.3. ulogd - The Netfilter Userspace Logging Daemon
35.4. ufw - program for managing a netfilter firewall
35.4.1. /etc/default/ufw
35.4.2. ip_forward
35.4.3. DHCP
35.4.4. Samba
35.5. Shorewall
35.5.1. Installation Instructions
35.5.2. Configuring Shorewall
35.6. Firewall GUI Tools
35.7. Endian Firewall
35.8. Smooth Firewall
35.9. Sphirewall
36. Stunnel - universal SSL tunnel
37. OpenSSH
37.1. 安装 OpenSSH
37.2. /etc/ssh/
37.2.1. sshd_config
37.2.2. ssh_config
37.2.3. ~/.ssh/config
37.3. OpenSSH Tunnel
37.3.1. SOCKS v5 Tunnel
37.4. ssh-keygen — authentication key generation, management and conversion
37.4.1. .ssh/known_hosts
37.5. ssh-keyscan
37.6. ssh-copy-id - install your public key in a remote machine's authorized_keys
37.7. ssh-agent
37.7.1. ssh-add
37.7.2. Lock / Unlock agent
37.7.3. Set lifetime (in seconds) when adding identities.
37.8. OpenSSH for Windows
37.8.1. Putty Client
37.9. FAQ
37.9.1. Pseudo-terminal will not be allocated because stdin is not a terminal.
37.9.2. 去掉 passphrase
37.9.3. 打印调试信息
38. VPN (Virtual Private Network)
38.1. OpenVPN (openvpn - Virtual Private Network daemon)
38.1.1. 源码安装
38.1.2. Openvpn Server
38.1.3. 吊销(revoke)用户证书
38.1.4. Openvpn Client
38.1.5. OpenVPN GUI for Windows
38.1.6. point-to-point VPNs
38.1.7. VPN 案例
38.1.8. OpenVPN安全
38.2. pptpd
38.2.1. FAQ
38.3. l2tpd - dummy package for l2tpd to xl2tpd transition
38.4. Ipsec VPN
38.4.1. ipsec-tools - IPsec tools for Linux
38.4.2. openswan - IPSEC utilities for Openswan
38.4.3. strongswan - IPSec utilities for strongSwan
38.5. N2N VPN
38.6. Hypersocket VPN
39. Point to Point
39.1. download
39.1.1. rtorrent - ncurses BitTorrent client based on LibTorrent
39.1.2. mldonkey-server - Door to the 'donkey' network
39.1.3. amule - client for the eD2k and Kad networks, like eMule
IV. Web Application
40. Apache httpd
40.1. Install
40.1.1. Quick install apache with aptitude
40.1.2. PHP 5
40.1.3. Compile and then install Apache
40.1.4. XAMPP
40.2. Module
40.2.1. Output a list of modules compiled into the server.
40.2.2. Core
40.2.3. mpm
40.2.4. Apache Log
40.2.5. mod_access
40.2.6. VirtualHost
40.2.7. Alias / AliasMatch
40.2.8. Redirect / RedirectMatch
40.2.9. Rewrite
40.2.10. Proxy
40.2.11. Deflate
40.2.12. Expires
40.2.13. Cache
40.2.14. usertrack
40.2.15. Charset
40.2.16. Dir
40.2.17. Includes
40.2.18. Apache Status
40.2.19. Mod Perl
40.2.20. mod_pagespeed -
40.2.21. Module FAQ
40.2.22. mod_setenvif
40.2.23. PHP 程序安全问题 php_admin_value
40.2.24. mod_spdy
40.3. 设置Apache实现防盗连
40.4. .htaccess
40.5. Error Prompt
40.5.1. Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
40.5.2. Invalid command 'AuthUserFile', perhaps misspelled or defined by a module not included in the server configuration
41. Lighttpd
41.1. 安装Lighttpd
41.1.1. quick install with aptitude
41.1.2. yum install
41.1.3. to compile and then install lighttpd
41.2. /etc/lighttpd/lighttpd.conf
41.2.1. max-worker / max-fds
41.2.2. accesslog.filename
41.2.3. ETags
41.2.4. server.tag
41.3. Module
41.3.1. simple_vhost
41.3.2. ssl
41.3.3. redirect
41.3.4. rewrite
41.3.5. alias
41.3.6. auth
41.3.7. compress
41.3.8. expire
41.3.9. status
41.3.10. setenv
41.3.11. fastcgi
41.3.12. user-agent
41.3.13. spdy
41.4. 其他模块
41.4.1. mod_secdownload 防盗链
41.5. Example
41.5.1. s-maxage
42. Nginx
42.1. Installing
42.1.1. Installing by apt-get under the debain/ubuntu
42.1.2. CentOS
42.1.3. installing by source
42.1.4. config test
42.1.5. rotate log
42.2. nginx 配置文件
42.2.1. events
42.2.2. http 配置
42.2.3. server
42.2.4. rewrite
42.2.5. fastcgi
42.2.6. Proxy
42.2.7. return
42.2.8. ngx_http_flv_module
42.2.9. ngx_http_mp4_module
42.2.10. limit_zone
42.2.11. Nginx 变量
42.3. Example
42.3.1. Nginx + Tomcat
42.4. FAQ
42.4.1. 405 Not Allowed?
42.4.2. 502 Bad Gateway?
42.4.3. 413 Request Entity Too Large
42.4.4. nginx: [emerg] "proxy_pass" cannot have URI part in location given by regular expression
42.4.5. proxy_pass
42.4.6. proxy_pass SESSION 丢失问题
42.4.7. [alert] 55785#0: *11449 socket() failed (24: Too many open files) while connecting to upstream
42.4.8. server_name 与 SSI 注意事项
42.4.9. location 跨 document_root 引用,引用 document_root 之外的资源
43. Apache Tomcat
43.1. Tomcat 安装与配置
43.1.1. Tomcat 6
43.1.2. Tomcat 7
43.1.3. Java 8 + Tomcat 8
43.1.4. 防火墙配置
43.1.5. 启动脚本
43.1.6. 同时运行多实例
43.1.7. Testing file
43.1.8. mod_jk
43.1.9. mod_proxy_ajp
43.1.10. RewriteEngine 连接 Tomcat
43.2. 配置 Tomcat 服务器
43.2.1. server.xml
43.2.2. tomcat-users.xml
43.2.3. context.xml
43.2.4. logging.properties
43.3. 虚拟主机配置
43.3.1. 方案一
43.3.2. 方案二
43.3.3. Alias 别名
43.3.4. access_log
43.3.5. Context 配置
43.3.6. 主机绑定IP地址
43.4. SSI
43.5. Init.d Script
43.5.1. Script 1
43.5.2. Shell Script 2
44. Resin
44.1. 安装Resin
44.1.1. 直接使用
44.1.2. Debian/Ubuntu
44.1.3. 源码安装Resin
44.2. Compiling mod_caucho.so
44.3. resin.conf
44.3.1. Maximum number of threads
44.3.2. Configures the keepalive
44.3.3. ssl
44.4. virtual hosts
44.4.1. explicit host
44.4.2. regexp host
44.4.3. host-alias
44.4.4. configures a deployment directory for virtual hosts
44.4.5. Resources
44.5. FAQ
44.5.1. java.lang.OutOfMemoryError: PermGen space
45. Application Server
45.1. Zope
45.2. JBoss - JBoss Enterprise Middleware
46. Web Server Optimization
46.1. ulimit
46.1.1. open files
46.2. khttpd
46.3. php.ini
46.3.1. Resource Limits
46.3.2. File Uploads
46.3.3. Session Shared
46.3.4. PATHINFO
46.4. APC Cache (php-apc - APC (Alternative PHP Cache) module for PHP 5)
46.5. Zend Optimizer
46.6. eaccelerator
47. varnish - a state-of-the-art, high-performance HTTP accelerator
47.1. Varnish Install
47.2. varnish utility
47.2.1. status
47.2.2. varnishadm
47.2.3. varnishtop
47.2.4. varnishhist
47.2.5. varnishsizes
47.3. log file
47.4. Varnish Configuration Language - VCL
47.4.1. unset / set
47.5. example
48. Apache Traffic Server
48.1. Install
48.2. Configure
49. Cherokee
49.1. Installing Cherokee
50. Jetty
51. Other Web Server
51.1. Python SimpleHTTPServer
52. web 服务器排名
52.1. HTTP状态码
V. Backup, Recovery, and Archiving Solutions
53. Logical Volume Manager (LVM)
53.1. 物理卷管理(physical volume)
53.1.1. pvcreate
53.1.2. pvdisplay
53.1.3. pvs
53.2. 卷组管理(Volume Group)
53.2.1. vgcreate
53.2.2. vgdisplay
53.2.3. vgs
53.2.4. vgchange
53.2.5. vgextend
53.2.6. vgreduce
53.3. 逻辑卷管理(logical volume)
53.3.1. lvcreate
53.3.2. lvdisplay
53.3.3. lvremove
53.4. Format
53.5. mount
53.5.1. lv
53.5.2. snapshot
53.6. snapshot backup
54. 文件传输
54.1. 跨服务器文件传输
54.1.1. scp - secure copy (remote file copy program)
54.1.2. nc - TCP/IP swiss army knife
54.2. wget - retrieves files from the web
54.2.1. 下载所有图片
54.2.2. mirror
54.2.3. reject
54.2.4. ftp 下载
54.3. axel - A light download accelerator - Console version
55. FTP (File Transfer Protocol)
55.1. lftp
55.1.1. pget
55.1.2. lftp 批处理
55.2. ncftp
55.2.1. batch command
55.2.2. ncftpget
55.2.3. ncftpput
55.3. FileZilla
55.4. vsftpd - The Very Secure FTP Daemon
55.4.1. 安装 vsftpd
55.4.2. ftp 帐号的shell权限
55.4.3. vsftpd 认证模块
55.4.4. chroot
55.4.5. FAT
55.5. ProFTPD + MySQL / OpenLDAP 用户认证
55.5.1. Proftpd + MySQL
55.5.2. Proftpd + OpenLDAP
55.6. Pure-FTPd + LDAP + MySQL + PGSQL + Virtual-Users + Quota
56. File Synchronize
56.1. rsync - fast remote file copy program (like rcp)
56.1.1. 安装Rsync与配置守护进程
56.1.2. rsyncd.conf
56.1.3. step by step to learn rsync
56.1.4. rsync examples
56.1.5. rsync for windows
56.1.6. 多进程 rsync 脚本
56.1.7. rsync 参数说明
56.2. tsync
56.3. Unison File Synchronizer
56.3.1. local
56.3.2. remote
56.3.3. config
56.4. csync2 - cluster synchronization tool
56.4.1. server
56.4.2. node
56.4.3. test
56.4.4. Advanced Configuration
56.4.5. 编译安装
56.5. synctool
57. File Share
57.1. NFSv4
57.1.1. Installation
57.1.2. exports
57.2. Parallel NFS(pNFS)
57.3. Samba
57.3.1. install
57.3.2. smb.conf
57.3.3. testparm - check an smb.conf configuration file for internal correctness
57.3.4. smbstatus - report on current Samba connections
57.3.5. smbpasswd - change a user's SMB password
57.3.6. nmblookup - NetBIOS over TCP/IP client used to lookup NetBIOS names
57.3.7. smbfs/smbmount/smbumount
57.3.8. smbclient - ftp-like client to access SMB/CIFS resources on servers
57.3.9. smbtar - shell script for backing up SMB/CIFS shares directly to UNIX tape drives
57.3.10. by Example
57.3.11. FAQ
58. Distributed File Systems
58.1. DRBD (Distributed Replicated Block Device)
58.1.1. disk and partition
58.1.2. Installation
58.1.3. configure
58.1.4. Starting
58.1.5. Using
58.2. Network Block Device protocol
58.2.1. nbd-server - Network Block Device protocol - server
58.2.2. nbd-client - Network Block Device protocol - client
58.3. GridFS
58.3.1. nginx-gridfs
58.3.2. lighttpd-gridfs
58.4. Moose File System
58.4.1. Master server installation
58.4.2. Backup server (metalogger) installation
58.4.3. Chunk servers installation
58.4.4. Users’ computers installation
58.4.5. Testing MFS
58.5. LizardFS
58.6. Hadoop - HDFS
58.6.1. 单机安装
58.6.2. 分布式安装
58.6.3. 二进制包安装
58.6.4. FAQ
58.7. Ceph
58.7.1. Installation on Ubuntu
58.7.2. Installation on CentOS
58.7.3. Block Devices
58.8. GlusterFS
58.8.1. glusterfs-server
58.8.2. glusterfs-client
58.8.3. Testing
58.8.4. RAID
58.8.5. Filesystem Administration
58.8.6. CentOS 6.3
58.9. Lustre
58.10. MogileFS
58.11. Kosmos distributed file system (KFS)
58.12. BeeGFS - The Parallel Cluster File System
58.13. Coda
58.14. OpenAFS
59. Shared Storage
59.1. Oracle OCFS2
59.1.1. 安装
59.2. GFS2
59.3. fam & imon
60. Network Attached Storage(NAS 网络附加存储)
60.1. Network Storage - Openfiler
60.1.1. Accounts
60.1.2. Volumes
60.1.3. Quota
60.1.4. Shares
60.2. OpenMediaVault
60.3. FreeNAS
61. Backup / Restore
61.1. 备份策略
61.1.1. Incremental backup
61.1.2. Differential backup
61.2. dump / restore
61.3. Bacula, the Open Source, Enterprise ready, Network Backup Tool for Linux, Unix, Mac and Windows.
61.3.1. Install Backup Server
61.3.2. Install Backup Client
61.4. Amanda: Open Source Backup
61.5. Attic - 拥有重复数据删除技术的备份软件
61.5.1. 安装 Attic
61.5.2. 快速开始
61.6. SafeKeep
61.7. Opendedup
62. inotify
62.1. inotify-tools
62.2. Incron - cron-like daemon which handles filesystem events
62.2.1. incrontab - inotify cron table manipulator
62.2.2. 使用说明
62.3. inotify-tools + rsync
62.4. pyinotify
VI. Monitoring
63. User
63.1. last, lastb - show listing of last logged in users
64. Memory
64.1. Memory
64.2. vmstat - Report virtual memory statistics
64.3. mpstat
64.4. pmap - report memory map of a process
65. CPU
65.1. uptime - Tell how long the system has been running.
65.2. top - display Linux tasks
65.3. atop - AT Computing's System & Process Monitor
65.4. htop - interactive process viewer
66. Processes
66.1. strace - trace system calls and signals
66.2. lsof - list open files
66.2.1. 监控文件系统
66.2.2.
66.2.3. 用户监控
66.2.4. 监控网络
66.2.5. 监控进程
66.2.6. lsof 高级用法
67. Harddisk IO
67.1. input/output statistics
67.1.1. 5 秒监控一次
67.2. iotop - simple top-like I/O monitor
67.3. ionice - set or get process I/O scheduling class and priority
68. Network IO
68.1. netstat
68.2. ss
68.3. iftop - display bandwidth usage on an interface by host
68.4. iptraf - Interactive Colorful IP LAN Monitor
68.5. nload: Console application which monitors network traffic and bandwidth
68.6. bwm - Bandwidth Monitor
69. Service
69.1. NFS
69.1.1. nfsstat
69.1.2. nfswatch
69.2. apachetop
70. iptstate - A top-like display of IP Tables state table entries
71. 文件监控
72. watchdog
73. nmon
74. Hardware
74.1. temperature/voltage/fan
74.2. mcelog - Decode kernel machine check log on x86 machines
75. SMS
75.1. gnokii
75.1.1. 安装
75.1.2. 配置
75.1.3. 发送测试短信
75.1.4. 接收短信
75.1.5. 拨打电话
75.2. AT Commands
75.2.1. 发送短信
75.2.2. 语音通话
76. IPMI (Intelligent Platform Management Interface)
76.1. OpenIPMI
76.2. freeipmi
76.2.1. ipmiping
76.2.2. ipmimonitoring
76.2.3. ipmi-sensors
76.2.4. ipmi-locate
76.3. ipmitool - utility for controlling IPMI-enabled devices
76.3.1. ipmitool
76.3.2. sensor
76.3.3. ipmitool shell
76.3.4. ipmitool 访问远程主机
76.3.5. Get chassis status and set power state
76.3.6. Configure Management Controller
76.3.7. Example for iDRAC
77. Logs 分析
77.1. log
77.1.1. logwatch
77.1.2. nulog
77.2. Web
77.2.1. Apache Log
77.2.2. Tomcat Log
77.2.3. awstats
77.2.4. webalizer
77.2.5. Sarg - Squid Analysis Report Generator
77.2.6. goaccess - Fast web log analyzer and interactive viewer.
77.3. rinetd.log
77.4. php-syslog-ng
77.5. Log Analyzer
77.6. Splunk
77.7. logstash - open source log management
77.8. Octopussy
77.9. eventlog-to-syslog
77.10. Apache Flume
78. JVM
78.1. jconsole
78.2. jps - Java Virtual Machine Process Status Tool
78.3. jinfo - Configuration Info
78.4. jstat - Java Virtual Machine Statistics Monitoring Tool
78.5. jHiccup
79. NET SNMP (Simple Network Management Protocol)
79.1. 安装SNMP
79.1.1. Ubuntu
79.1.2. CentOS
79.2. 配置SNMP
79.2.1. community 配置
79.2.2. 定义可操作的范围
79.3. SNMP 命令
79.3.1. snmpwalk
79.3.2. snmpget
79.3.3. snmptest
79.4. Cisco MBI
79.4.1. Cisco 3750
79.4.2. Cisco ASA 5550
80. Cacti
80.1. Install Cacti for Ubuntu
80.2. Yum 安装
80.3. Source Install
80.4. Web 安装
80.5. Cacti plugins
80.5.1. Percona monitoring plugins
80.6. Template
80.6.1. Nginx
80.6.2. php-fpm
80.6.3. MySQL
80.6.4. Redis
80.6.5. Percona JMX Monitoring Template for Cacti
81. Nagios
81.1. Install
81.1.1. Nagios core
81.1.2. Monitor Client nrpe
81.1.3. Monitoring Windows Machines
81.1.4. PNP4Nagios 图表插件
81.2. 配置 Nagios
81.2.1. authorized
81.2.2. contacts
81.2.3. hostgroups
81.2.4. generic-service
81.2.5. SOUND OPTIONS
81.2.6. SMS 短信
81.3. 配置监控设备
81.3.1. routers
81.3.2. host
81.3.3. service
81.4. Nagios Plugins
81.4.1. check_ping
81.4.2. check_procs
81.4.3. check_users
81.4.4. check_http
81.4.5. check_mysql
81.4.6. Disk
81.4.7. check_tcp
81.4.8. check_log
81.4.9. check_traffic
81.4.10. Nagios nrpe plugins
81.4.11. check_nt
81.4.12. nsca - Nagios Service Check Acceptor
81.4.13.
81.5. FAQ
81.5.1. Macro Name
81.5.2. 插件开发手册
82. Munin
82.1. Installation Monitor Server
82.2. Installation Node
82.3. Additional Plugins
82.4. plugins
82.4.1. mysql
82.4.2. apache
83. Zabbix
83.1. Installing and Configuring Zabbix
83.1.1. Ubuntu
83.1.2. CentOS
83.2. web ui
83.3. zabbix-java-gateway - Zabbix java gateway
83.4. zabbix-agent
84. Ganglia
84.1. Server
84.2. Client
84.3. Plugin
84.4. Installing Ganglia on Centos
85. lvs-rrd
86. Ntop
86.1. Installation
86.1.1. Ubuntu
86.1.2. CentOS
86.2. Web UI
86.3. Plugins
86.3.1. NetFlow
87. Observium
87.1. Installation
88. OpenTSDB
89. Graphite
90. Graphite - Scalable Realtime Graphing
91. BIG BROTHER
92. Big Sister
93. OpenNMS
94. Performance Co-Pilot
95. Clumon Performance Monitor
96. Zenoss
97. 商业软件
98. Hyperic HQ
99. OSSIM,Spiceworks,FireGen,LANSweeper,OSSEC,HIDS
100. HawtIO
101. moloch
102. NetFlow
102.1. flow-tools - collects and processes NetFlow data
102.1.1. flow-capture
102.1.2. NetFlow into MySQL with flow-tools
102.2. netams - Network Traffic Accounting and Monitoring Software
102.2.1. netams-web
103. varnish - a state-of-the-art, high-performance HTTP accelerator
103.1. Varnish Install
103.2. varnish utility
103.2.1. status
103.2.2. varnishadm
103.2.3. varnishtop
103.2.4. varnishhist
103.2.5. varnishsizes
103.3. log file
103.4. Varnish Configuration Language - VCL
103.4.1. unset / set
103.5. example
104. Apache Traffic Server
104.1. Install
104.2. Configure
VII. Server Load Balancing
105. heartbeat
105.1. heartbeat+ldirectord
105.1.1. heartbeat
105.1.2. ldirectord
105.1.3. test
105.2. Pacemaker
106. Linux Virtual Server
106.1. 环境配置
106.2. VS/NAT
106.3. VS/TUN
106.4. VS/DR
106.4.1. 配置文件
106.5. ipvsadm script
106.6. Timeout
106.7. debug
106.8. ipvsadm monitor
107. keepalived
107.1. 安装
107.2. test
107.3. HAProxy and Keepalived (Virtual IP)
108. Piranha - Cluster administation tools
108.1. install
108.2. configure
108.3. real server
108.4. Example
108.4.1. Master
108.4.2. Slave
108.4.3. MySQL
109. HAProxy - fast and reliable load balancing reverse proxy
109.1. Installing
109.1.1. Ubuntu
109.1.2. CentOS
109.2. haproxy.cfg
109.2.1. stats
109.2.2. listen 方式
109.2.3. frontend/backend 方式
109.2.4. option
109.2.5. balance
109.2.6. server
109.3. Example 配置实例
109.3.1. HTTP 配置实例
109.3.2. Squid
109.3.3. haproxy + mysql 配置实例
109.3.4. HTTPS SSL证书卸载配置实例
109.3.5. 使用TCP模式实现SSL穿透
110. balance - Load balancing solution and generic tcp proxy
110.1. balance
110.1.1. 编译安装
110.1.2. Ubuntu 安装
110.1.3. 测试安装是否正确
110.1.4. 用法
110.2. BalanceNG
110.3. RBridge
111. Perlbal
111.1. install
112. Pacemaker
113. Example
113.1. 双负载均衡的用法
113.2. 单台负载均衡的用法
113.3. 广域网负载均衡的用法
VIII. Distributed Computing
114. Open Source Distributed Computing
114.1. Boinc (berkeley 分布式计算平台)
114.1.1. rc.local
114.2. ubuntu apt-get 安装
114.3. CentOS 安装
114.4. boinccmd
114.4.1. attach_project
114.4.2. nomorework | allowmorework 禁止下载任务 / 允许下载任务
115. Twitter Storm
115.1. 单机版
115.2. lein 安装
116. High performance Computing
116.1. Distributed Computing
116.1.1. OpenMosix
116.1.2. OpenSSI
116.2. Parallel Computing
116.2.1. EnFusion
116.2.2. SCore
116.2.3. Beowulf
117. Spark
118. Tachyon
119. Apache ZooKeeper
119.1. 安装配置
119.1.1. 单节点安装
119.1.2. 多节点安装
119.2. 管理 ZooKeeper
119.2.1. help
119.2.2. ls
119.2.3. create
119.2.4. get
119.2.5. set
119.2.6. delete
IX. Mail Server
120. Mail server constituent
121. mail user agent (MUA)
121.1. mutt - text-based mailreader supporting MIME, GPG, PGP and threading
121.1.1. 发送邮件
121.2. alpine - Text-based email client, friendly for novices but powerful
121.3. fetchmail - SSL enabled POP3, APOP, IMAP mail gatherer/forwarder
121.4. GPG4WIN
121.5. Evolution
122. exim - meta-package to ease Exim MTA (v4) installation
122.1. install
122.1.1. ubuntu/debian
122.1.2. CentOS/Redhat
122.2. exim 命令
122.2.1. 刷新邮件队列
122.3. 配置exim
122.3.1. /etc/aliases 别名配置
122.4. FAQ
122.4.1. Mailing to remote domains not supported
123. postfix - High-performance mail transport agent
123.1. install
123.1.1. Ubuntu
123.1.2. CentOS
123.2. 转发配置
123.3. 拒收垃圾邮件
123.4. Rspamd
123.5. /var/log/maillog
123.5.1. 计算每分钟发送数量日志统计
123.5.2. 虚假地址统计
123.6. postmulti - Postfix multi-instance manager
123.6.1. 绑定IP地址
123.6.2.
123.6.3. 配置 iptables 让SMTPD发送邮件时依次轮询外发IP地址,这样就不会被封锁。
123.7. FAQ
123.7.1. SMTP ERROR: RCPT TO command failed: 501 5.1.3 Bad recipient address syntax
124. 邮件原文
124.1. Subject Unicode
124.2. TO/CC/BCC
124.3. 正文
124.4. POP Sniffer
124.5. PHP mail()
125. 反垃圾邮件相关
125.1. Sender Policy Framework
125.1.1. 分析 SPF 记录
125.2. DKIM
125.3. 邮件被拒收处理方法
125.3.1. NetEase
125.3.2. Sohu
125.3.3. Tom
125.3.4. QQ
125.3.5. 21CN
126. Fax
126.1. HylaFAX
127. FAQ
127.1. 通过SSH与控制台不能登录
X. Security
128. Authentication
128.1. /etc/login.defs
128.2. PAM 插件认证
128.2.1. pam_tally2.so
128.2.2. pam_listfile.so
128.2.3. pam_access.so
128.2.4. pam_wheel.so
128.3. Network Authentication
128.3.1. Network Information Service (NIS)
128.3.2. OpenLDAP
128.3.3. Kerberos
128.3.4. FreeRADIUS (Remote Authentication Dial In User Service)
128.3.5. SASL (Simple Authentication and Security Layer)
128.3.6. GSSAPI (Generic Security Services Application Program Interface)
129. Sniffer
129.1. nmap - Network exploration tool and security / port scanner
129.1.1. HOST DISCOVERY
129.1.2. SCAN TECHNIQUES
129.1.3. PORT SPECIFICATION AND SCAN ORDER
129.1.4. SCRIPT SCAN
129.1.5. OS DETECTION
129.1.6. OUTPUT
129.1.7. MISC
129.1.8. Nmap Scripting Engine (NSE)
129.2. tcpdump - A powerful tool for network monitoring and data acquisition
129.2.1. 监控网络适配器接口
129.2.2. 监控主机
129.2.3. 监控TCP端口
129.2.4. 监控协议
129.2.5. 输出到文件
129.2.6. 保存结果
129.2.7. Cisco Discovery Protocol (CDP)
129.2.8. 案例
129.3. cdpr - Cisco Discovery Protocol Reporter
129.4. nc - TCP/IP swiss army knife
129.5. Unicornscan,Zenmap,nast
129.6. netstat-nat - Show the natted connections on a linux iptable firewall
129.7. Tcpreplay
129.8. Wireshark
130. sqlmap - automatic SQL injection and database takeover tool
130.1. Installation
130.2. 开始入住实验
130.2.1. 测试脚本
130.2.2. sqlmap.ini
130.3. Request参数
130.3.1. --method, --data
130.3.2. --cookie
130.3.3. --referer
130.3.4. --user-agent
130.3.5. --headers
130.3.6. --referer
130.3.7. auth
130.3.8. --proxy
130.3.9. --threads
130.3.10. --delay
130.3.11. --timeout
130.4. Injection
130.4.1. --dbms
130.4.2. --prefix
130.4.3. --postfix
130.4.4. --string
130.4.5. --regexp
130.4.6. --excl-str
130.4.7. --excl-reg
130.5. Techniques
130.5.1. --stacked-test
130.5.2. --time-test
130.5.3. --union-test
130.5.4. --union-tech
130.5.5. --union-use
130.6. Enumeration
130.6.1. dbs
130.6.2. --count
130.6.3. --dump/--dump-all
130.6.4. --sql-query
130.6.5. --sql-shell
130.7. Miscellaneous
130.7.1. --update
130.7.2. --save
131. Vulnerability Scanner
131.1. Nessus
131.2. OpenVAS
132. Injection & Penetration
132.1. Backtrack Linux
133. SELinux
133.1. getsebool - get SELinux boolean value
133.2. sestatus - SELinux status tool
133.3. setsebool - set SELinux boolean value
133.4. chcon - change file SELinux security context
133.5. rsync
134. Suricata Engine
135. psad
136. fwknop
137. fwsnort
138. nftables
139. Haka
XI. Configuration Management(配置管理)
140. Ansible - SSH-based configuration management, deployment, and task execution system
140.1. install
140.2. Getting Started
140.3. ansible - run a command somewhere else
140.3.1. host-pattern
140.3.2. -a MODULE_ARGS, --args=MODULE_ARGS module arguments
140.3.3. -i INVENTORY, --inventory-file=INVENTORY specify inventory host file (default=/etc/ansible/hosts)
140.3.4. -m MODULE_NAME, --module-name=MODULE_NAME module name to execute (default=command)
140.3.5. -s, --sudo run operations with sudo (nopasswd)
140.3.6. -u REMOTE_USER, --user=REMOTE_USER connect as this user (default=root)
140.3.7. 使用实例
140.4. ansible-doc - Show Ansible module documentation
140.5. ansible-playbook - run an ansible playbook
140.5.1. 包含文件用法
141. Capistrano
142. Puppet
142.1. Installing Puppet CentOS 6.3
142.2. Puppet 签名
142.2.1. Agent 节点
142.2.2. Master 服务器
142.3. test
142.3.1. Master
142.3.2. Agent
142.4. 配置文件
142.4.1. /etc/sysconfig/puppet
142.4.2. /etc/puppet/fileserver.conf
142.5. manifests
142.5.1. node
142.5.2. group, user 用户组管理
142.5.3. file
142.5.4. package
142.5.5. service
142.5.6. exec
142.5.7. cron
142.6. modules
142.7. firewall 配置
142.8. debug
142.8.1. master
142.8.2. node
142.9. FAQ
142.9.1. err: Could not request certificate: No route to host - connect(2)
142.9.2. No help available unless you have RDoc::usage installed
143. SaltStack
143.1. 安装 Salt Stack
143.1.1. 服务端安装
143.1.2. 客户端安装
143.1.3. 防火墙配置
143.1.4. key 管理
143.1.5. 测试
143.1.6. Demo
143.2. salt-key - Salt key is used to manage Salt authentication keys
143.3. salt 命令
143.3.1. cmd
143.3.2. pkg.install
143.3.3. network.interfaces
143.3.4. salt example
143.4. /etc/salt/master
143.4.1. File Server settings
143.4.2. Pillar settings
143.4.3. Node Groups
143.4.4. File Server Backend
143.5. sls 脚本
143.5.1. pkg
143.5.2. service
143.6. FAQ
143.6.1. Git fileserver backend is enabled in configuration but could not be loaded, is git-python installed
144. Chef
144.1. 安装 Chef
144.1.1. CentOS
145. Cobbler
146. Cfengine
147. func
148. (R)?ex Deployment & Configuration Management
149. 基于Web的系统管理软件
149.1. Webmin
149.1.1. webalizer
149.2. ajenti
XII. Virtualization
150. Docker
150.1. Installation
150.1.1. CentOS
150.1.2. Ubuntu
150.2. 镜像
150.2.1.
150.2.2. 获取镜像
150.2.3. 列出本地镜像
150.2.4. 创建镜像
150.2.5. 保存和载入镜像
150.2.6. 删除本地镜像
150.3. 容器
150.3.1. 启动与终止容器
150.3.2. 进入容器
150.3.3. 导出和导入容器
150.3.4. 删除容器
150.4. 仓库
150.5. docker 命令
150.5.1. run
150.5.2. start / stop / restart
150.5.3. ps
150.5.4. top
150.5.5. inspect
150.5.6. images
151. vagrant - Tool for building and distributing virtualized development environments
XIII. Voice over IP
152. Gnu Gatekeeper
152.1. Gnu Gatekeeper Install
152.2. Gnu Gatekeeper Configure
152.3. Gnu Gatekeeper Test
152.3.1. Part I - Microsoft Windows NetMeeting
152.3.2. Part II - ohphone
153. OpenSIPS
153.1. 安装 OpenSIPS
153.1.1. centos 6.5 默认安装
153.1.2. 使用 yum.opensips.org 源安装
153.1.3. 编译安装
153.2. 数据库部署
153.2.1. DBTEXT
153.2.2. MySQL
153.2.3. PGSQL
153.2.4. Berkeley DB
153.3. 测试 opensips
154. PBX
154.1. Asterisk (OpenSource Linux PBX that supports both SIP and H.323)
154.2. FreeSWITCH
154.3. Yate - Yet Another Telephony Engine (includes SIP to H.323 translation)
155. VOCAL (includes a SIP to H.323 translator)
156. SIP/H.323 客户端
156.1. linphone
156.2. Yate Client
XIV. X Window
157. install x window
157.1. xinput - utility to configure and test X input devices
158. X Setup
158.1. 取消开机启动画面
158.2. Automatic login
158.3. fonts 字体
158.4. disable x window
159. X Terminal
159.1. tsclient - Terminal Server Client supporting XDMCP, VNC and RDP
159.1.1. VNC
159.1.2. xdmcp
159.2. vinagre - a remote desktop viewer for the GNOME Desktop
159.3. rdesktop - A Remote Desktop Protocol client
159.3.1. -g: desktop geometry (WxH)
159.3.2. -f: full-screen mode
159.3.3. -A: enable SeamlessRDP mode
159.3.4. -z: enable rdp compression
159.3.5. -r: enable specified device redirection (this flag can be repeated)
159.4. tigervnc
159.5. TightVNC
160. Unity
160.1. Enable/Disable Auto Hide For Unity 2-D Launcher In Ubuntu 11.10
161. X Window System
161.1. Fluxbox
161.2. LXDE
161.3. Xfce
161.4. Xming X Server for Windows
162. X Application Software
162.1. ubuntu-restricted-extras
162.2. Keyboard Input Methods(输入法)
162.3. 浏览器
162.3.1. Firefox
162.3.2. Chromium Web Browser
162.4. Download Software
162.5. PAC Manager
162.6. LibreOffice
162.7. VYM (View Your Mind)
162.8. greenshot
162.9. Window Switch
163. Office
163.1. Calc
163.1.1. 函数
164. FAQ
164.1. 通过SSH与控制台不能登录
1. 附录
1.1. 参考文档
1.2. Red Hat 漏洞
1.3. National Vulnerability Database (NVD)
1.4. Red Hat Bug平台
2. 历史记录

表格清单

1.1. Linux partition
18.1. 文件目录表达式
18.2. 字符串表达式
18.3. 组合表达式
35.1. net.ipv4.ip_forward
60.1. Volume Group Management
7. 表格标题

范例清单

9.1. GPT Example
9.2. 创建扩展分区
12.1. bonding example
12.2. 命令行建立WiFi链接步骤
18.1. A "Power User" Prompt
18.2. A Prompt the Width of Your Term
18.3. The Elegant Useless Clock Prompt
18.4. Basic conditional example if .. then
18.5. Conditionals with variables
18.6. case
18.7. Functions with parameters sample
18.8. Using select to make simple menus
18.9. Using the command line
18.10. Reading user input with read
18.11. read
18.12. random password
20.1. backup(find + tar)
22.1. example for expect
22.2. example for expect
22.3. example 1
22.4. *.exp
22.5. parallel - build and execute shell command lines from standard input in parallel
23.1. whiptail - yesno
23.2. whiptail - inputbox
23.3. whiptail - passwordbox
23.4. whiptail - passwordbox
23.5. whiptail - example 1
23.6. whiptail - radiolist
35.1. /etc/sysconfig/iptables
35.2. connlimit 实例
35.3. CentOS 5.6
38.1. openvpn.conf
38.2. server.conf
38.3. Openvpn 桥接模式服务器配置实例
38.4. 双网卡配置实例
38.5. client.conf
38.6. server.ovpn
38.7. client.ovpn
38.8. office.conf
38.9. home.ovpn
40.1. index.php
40.2. autolamp.sh
40.3. R=301
40.4. mod_perl.conf
41.1. /etc/init.d/lighttpd
41.2. lighttpd compress
41.3. lighttpd expire
41.4. fastcgi.conf
41.5. Cache
42.1. Expires Examples
42.2. nginx expires
42.3. Example: valid_referers
42.4. Nginx + Tomcat
43.1. /etc/profile.d/java.sh
43.2. tomcat firewall
43.3. /etc/init.d/tomcat
43.4. /etc/rc.d/init.d/www
44.1. explicit host in resin.conf
44.2. regexp host in resin.conf
44.3. host-alias in the resin.conf
44.4. host-alias in a /var/www/hosts/foo/host.xml
44.5. host-alias-regexp in the resin.conf
44.6. shared database in host
44.7. rewrite-dispatch
47.1. default.vcl
56.1. examples
56.2. backup to a central backup server with 7 day incremental
56.3. backup to a spare disk
56.4. mirroring vger CVS tree
56.5. automated backup at home
56.6. Fancy footwork with remote file lists
56.7. /etc/csync2.cfg
58.1. nginx-gridfs
58.2. Mirror
58.3. Strip
73.1. nmon
77.1. config.php
78. mrtg
80.1. cacti config.php
81.1.
103.1. default.vcl
107.1. keepalived.conf
107.2. /etc/keepalived/keepalived.conf
108.1. piranha master
108.2. piranha slave
109.1. haproxy + mysql 配置实例
109.2. Haproxy MySQL (Master + Master)
124.1. Subject Unicode
128.1. /etc/pam.d/sshd - pam_tally2.so
128.2. /etc/pam.d/sshd - pam_listfile.so
142.1. puppetd
142.2. puppetca
143.1. salt command
comments powered by Disqus