ค้นหา


Knowledge

Servers: we use only branded servers เราใช้แต่ เครื่อง brand name เท่านั้น
------------

------------
Software: we use Linux server เราใช้ลินุกซ์
------------
Directadmin: we use directadmin CP
บริการพิเศษ
home  ::>>> Forums
Dochost support forums :: ดูกระทู้ - -How to Build rsync server in Centos
 คำถามถามบ่อยของกระดานข่าวคำถามถามบ่อยของกระดานข่าว   ค้นหาค้นหา   กลุ่มผู้ใช้งานกลุ่มผู้ใช้งาน   ข้อมูลส่วนตัวข้อมูลส่วนตัว   เข้าระบบเข้าระบบ 

-How to Build rsync server in Centos

 
ตั้งกระทู้ใหม่   ตอบกระทู้    Dochost support forums หน้ากระดานข่าวหลัก -> how to forge
ดูกระทู้ก่อนนี้ :: ดูกระทู้ถัดไป  
ผู้ส่ง ข้อความ
dochost
ADMIN
ADMIN


เข้าร่วมเมื่อ: 22/10/2009
ตอบ: 23

ตอบตอบ: 26/10/2009 6:03 pm    ชื่อกระทู้: -How to Build rsync server in Centos ตอบกระทู้ด้วยเครื่องหมายคำพูด(quote)

โค้ด:

# yum -y install rsync xinetd

To make sure you have these rsync and xinetd
โค้ด:

# chkconfig --add xinetd
# chkconfig --list xinetd

Enable rsync
โค้ด:

# vi /etc/xinetd.d/rsync
Change disable = yes into disable = no

Check again for xinetd process
โค้ด:

# chkconfig --list

Create new rsync config file in /etc
Usually we will use rsync and PAM authentication
โค้ด:

# vi /etc/rsyncd.conf
max connections = 2
log file = /var/log/rsync.log
timeout = 300

[shares]
comment = comment here
path = /home/mojo/shares
read only = true # chg to false if you want changeable
list = yes
uid = mojo
gid = mojo
auth users = mojo
hosts allow = xx.xxx.xxx.xx


Create new user
โค้ด:

# useradd -G mojo mojo
# passwd mojo

Secure the rsyncd
โค้ด:

# chown root.root /etc/rsyncd.*
# chmod 600 /etc/rsyncd.*

โค้ด:

# service xinetd restart
กลับไปข้างบน
แสดงข้อมูลส่วนตัวของสมาชิก ส่งข่าวสารส่วนตัว
แสดงการตอบก่อนนี้:   
ตั้งกระทู้ใหม่   ตอบกระทู้    Dochost support forums หน้ากระดานข่าวหลัก -> how to forge ปรับเวลา GMT + 7 ชั่วโมง
หน้า 1 จากทั้งหมด 1

 
ไปยัง:  
คุณ ไม่สามารถ ตั้งกระทู้ใหม่ในกระดานนี้
คุณ สามารถ ตอบกระทู้ในกระดานนี้
คุณ ไม่สามารถ แก้ไขการตอบกระทู้ของคุณในกระดานนี้
คุณ ไม่สามารถ ลบการตอบกระทู้ของคุณในกระดานนี้
คุณ ไม่สามารถ ลงคะแนนในแบบสำรวจในกระดานนี้


Powered by phpBB © 2001-2003 phpBB Group