LINUX RSYNC配置详解
1,首先SERVER与CLIENT都需要安装RSYNC
2,其次在SERVER的/etc/下面建立rsyncd.conf
内容可以按照下面的写法
[root@vm-base-01 local]# more /etc/rsyncd.conf
uid =
root ///RSYNC启动ID
gid = root
use chroot =
no
log file = /var/log/rsyncd.log ////日志存放
pid file =
/var/run/rsyncd.pid
lock file = /var/run/rsync.lock
[publishonline] ///模块名称---也就一个需要同步或备份的目录
path =
/usr/local/apache/htdocs/publish/online/images
comment = home cad
folder
ignore errors
read only = yes
list = no
auth users = xp20adm ////登录用户名--自我随意设置
secrets file =
/etc/rsyncd.scrt ////密码存放文件----一般需要自我建立此文件,路经与命名随意
[publishdown]
path = /usr/local/apache/htdocs/publish/down/images
comment =
home cad folder
ignore errors
read only = yes
list =
no
auth users = xp20adm
secrets file = /etc/rsyncd.scrt
[magdown]
path = /usr/local/apache/htdocs/publish/down
comment = home cad
folder
ignore errors
read only = yes
list = no
auth users = xp20adm
secrets file = /etc/rsyncd.scrt
3,SERVER就基
本配置好了,自己不要忘记配置模块中制定的目录与密码存放点
//////////////////////////////注意
////////////////////////////////////
bash-2.03# cat /etc/rsyncd.scrt
密码格式如下
用户名:密码 (有个冒号哟)
!!!!!!!!出于安全目的,文件的属性必需是只有属主可读(不能
错)!!!!!!!!!!!!!!!!!
chmod 400
4,
相关文档:
总览
用iptables -ADC 来指定链的规
则
,-A添加 -D删除 -C 修改
iptables - [RI] chain rule num rule-specification[option]
用iptables - RI 通过规则的顺序指定
iptables -D chain rule num[option]
删除指定规则
iptables -[LFZ] [chain][option]
用iptables -LFZ 链名 [选项]
iptables -[NX] chain
用 -NX ......
1、安装所需的pcre库
tar zxvf pcre-7.9.tar.gz
cd pcre-7.9
./configure
make && make install
2、安装包:
下载网址:http://www.lighttpd.net/
lighttpd-1.4.23.tar(版本:1.4.23)
3、解压与编译
tar zxvf lighttpd-1.4.23.tar.gz
cd lighttpd-1.4.23
./configure --prefix=/usr/local/lighttpd
......
转载于http://blog.csdn.net/CLX1314/archive/2006/03/30/643826.aspx
1。linux编程所用的一些工具
GCC 中文手册
http://www.nbfan.com/forum/dispbbs....&ID=1433&page=1
GNU make 指南
http://www.linuxsir.org/bbs/showthr...&threadid=40431
autoconf-2.57手册(英文)
http://www.gnu.org/software/a ......
cp命令
该命令的功能是将给出的文件或目录拷贝到另一文件或目录中,同MSDOS下的copy命令一样,功能十分强大。
语法: cp [选项] 源文件或目录 目标文件或目录
说明:该命令把指定的源文件复制到目标文件或把多个源文件复制到目标目录中。
该命令的各选项含义如下:
- a 该选项通常在拷贝目录时使用。它保留链接、文 ......
1。获得源代码
src 官网下载地址:ftp://ftp.qt.nokia.com/qt/source/
2009 年 10 月 1 日发布的 qt-x11-opensource-src-4.5.3.tar.gz,大小 122 Mb。
2。解压缩
tar xvfz qt-x11- ......