Netkiller Linux 手札
Debian/Ubuntu Cookbook
版权 © 2006, 2007, 2008, 2009 Netkiller(Neo Chan). All rights reserved.
版权声明
转载请与作者联系,转载时请务必标明文章原始出处和作者信息及本声明。
文档最近一次更新于 Wed Apr 29 12:49:15 UTC 2009
内容摘要
本文档讲述Linux系统涵盖了系统管理与配置包括:
-
域名服务器,代理服务器,防火墙,VPN
-
WEB服务器 lighttpd apache fastcgi mod_php mod_perl
-
数据库服务器,mysql/mysql cluster postgresql
-
数据同步,镜像,备份,恢复
-
集群,负载均衡
对初学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. Introduction
- I. System
- II. Network Application
- III. Security
-
-
18. OpenSSH
- 19. ACL - Access Control List
- 20. Firewall
- 21. VPN
- 22. Stunnel - universal SSL tunnel 23. FreeRADIUS
- 24. Kerberos
IV. File Transfer
-
-
25. wget - retrieves files from the web
26. axel - A light download accelerator - Console version
27. ncftp
- 28. FileZilla 29. vsftpd - The Very Secure FTP Daemon 30. ProFTPD + MySQL / OpenLDAP 用户认证
- 31. Pure-FTPd + LDAP + MySQL + PGSQL + Virtual-Users + Quota 32. rsync - fast remote file copy program (like rcp)
- 33. tsync 34. Unison File Synchronizer
- 35. csync2
V. Web Application
- VI. Storage And Backup/Restore
- VII. Cluster
- VIII. Monitor and Assistant
- IX. Multimedia
- X. Shell
- XI. Instant messaging
- 65. exim4 - meta-package to ease Exim MTA (v4) installation
- 66. Open Source Distributed Computing
- A. 案例
- B. 附录
- C. 历史记录
表格清单
-
1.1.
Linux partition
20.1.
net.ipv4.ip_forward
44.1.
Volume Group Management
61.1.
文件目录表达式
61.2.
字符串表达式
61.3.
组合表达式
范例清单
-
4.1.
bonding example
21.1.
server.conf
21.2.
client.conf
21.3.
server.ovpn
21.4.
client.ovpn
21.5.
openvpn.conf
32.1.
examples
32.2.
backup to a central backup server with 7 day incremental
32.3.
backup to a spare disk
32.4.
mirroring vger CVS tree
32.5.
automated backup at home
32.6.
Fancy footwork with remote file lists
35.1.
/etc/csync2.cfg
36.1.
/etc/init.d/lighttpd
36.2.
fastcgi.conf
37.1.
index.php
37.2.
mod_perl.conf
38.1.
/etc/profile.d/java.sh
38.2.
/etc/rc.d/init.d/www
40.1.
/etc/init.d/memcached
50.1.
keepalived.conf
52.1.
config.php
53.1.
cacti config.php
61.1.
A "Power User" Prompt
61.2.
A Prompt the Width of Your Term
61.3.
The Elegant Useless Clock Prompt
61.4.
Basic conditional example if .. then
61.5.
Conditionals with variables
61.6.
61.7.
Functions with parameters sample
61.8.
Using select to make simple menus
61.9.
Using the command line
61.10.
Reading user input with read