第一部分 rsync服務端配置
2、 開啟rsync服務
a、啟動rsync
#vi /etc/xinetd.d/rsync
# default: off# description: the rsync server is a good addition to an
ftpserver, as it \
# allows crc checksumming etc.
service rsync
b、手動生成配置檔案 /etc/rsyncd.conf
###########----全域性配置-----##############pid
file = /var/run/rsyncd.pid #pid檔案,可無
port = 873
#監聽埠
uid =root # 執行rsync守護程序的使用者名稱
gid =root # 執行rsync守護程序的使用者組
use
chroot =yes
read only =no
hosts allow = 127.0.0.1/24
172.18.0.0/16
#允許訪問的ip,可不填寫,安全起見需要填寫
hosts deney = 183.232.24.190
#拒絕訪問ip,可不填寫
###########----模組配置-----#############
[sinawap]
path = /usr/local/test
read only =no
list =no #不允許列檔案
auth users =username #可不填寫
secrets
file = /etc/rsync.pas #如果有使用者,可填寫密碼檔案位址如下
hosts allow = 127.0.0.1/24
172.18.0.0/16
#允許訪問的ip,可不填寫,安全起見需要填寫
hosts deny = 0.0.0.0/0
#拒絕訪問ip,可不填寫
#transfer logging = yes
c、啟動服務
a) service xinetd restart
b) 獨立啟動 /usr/bin/rsync --deamon
-----待續-----
Linux系統中rsync相關配置
linux系統中rsync相關配置 鄧強 第一步 服務端 touch etc rsyncd.conf vi etc rsyncd.conf 內容如下 全域性配置部分 secrets file etc rsyncd.secrets read only yes list yes uid root gid...
整理 DC相關
驗證 1.寫個測試程式,在螢幕上圈選乙個區域,把這個區域的公釐尺寸報出來.2.寫個螢幕標尺,使用者隨意在螢幕上標註兩點,報出這條線的公釐尺寸.要顯示出標尺的外形.codeproject上有這種資料,先找一下.預期的實現 程式執行後為托盤,測量按鈕在懸浮窗內.懸浮窗半透明,位圖背景,位圖按鈕.卡尺的左...
NSDateFormatter相關整理
formatter譯為格式,相應的nsdateformatter就相當於是nsdate的轉換類,將nsdate轉換為另一種格式,或轉換回來。nsdate沒有自己的輸出,需要借助nsdateformatter以相應格式輸出。這差不多就是nsdateformatter的作用了吧。常用的方法並不複雜,幾條...