rsync優點:安全性高、備份速度快、支援增量備份等。inotify是細密度的、非同步檔案系統事件監控機制,Linux核心從2.6.13起,加入了對inotify的支援,通過第三方軟體inotify-tools可以監控檔案系統下的檔案的各種變化情況。rsync和inotify-tools的配合使用可以實現資料的即時同步更新。以下是配置過程。環境說明Server A ip address :192.168.2.102Server B ip address :192.168.2.103Server
# 連線逾時時間# 預設值 30sconnect_timeout=30# 網路逾時時間# 預設值 30snetwork_timeout=60# the base path to store log files 存放日誌的根目錄base_path=/rekfan.com/fastdfs_data# tracker_server can ocur more than once, and tracker_server format is# "host:port",
在CentOS系統下,主要有兩種方法設定自己安裝的程式開機啟動。1、把啟動程式的命令添加到/etc/rc.d/rc.local檔案中,比如下面的是設定開機啟動httpd。#!/bin/sh## This script will be executed *after* all the other init scripts.# You can put your own initialization stuff in here if you don't# want to do the full
說明:1、Rsync服務端系統:CentOS 5.5IP地址:192.168.21.160資料存放目錄:/data/osyunwei2、cwRsync用戶端系統:Windows Server 2003IP地址:192.168.21.130同步的目錄:D:\osyunwei實現目的:cwRsync用戶端每天淩晨3:00鐘自動同步Rsync服務端/data/osyunwei目錄中的資料到D:\osyunwei目錄一、Rsync服務端配置1、關閉SELINUXvi
iptables是Linux類伺服器重要的網路安全防範系統工具,考慮到多數伺服器有專門的團隊託管,伺服器管理員多數時間只能通過SSH進行遠端管理,在安全允許的情況下,保證SSH的合法聯通,需要做如下的配置。iptables -P INPUT ACCEPTiptables -Fiptables -A INPUT -i lo -j ACCEPTiptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPTiptables -A
這裡有兩個錯誤:1、第一個錯誤,APR的問題,錯誤詳情:The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path2、第二個錯誤,錯誤詳情:Exception in thread "main" java.lang.InternalError