2010年5月19日 星期三
linux rsync備份至不同機器
target(被丟的)
# vi /etc/rsyncd.conf
tatsumilk:1234567
# chmod 600 /etc/rsyncd.secrets
重要!不然會auth failed
# rsync --daemon
initiator(丟人的)
# vi /home/.../rsyncd.secrets
1234567
# rsync -av --password-file=/home/.../rsyncd.secrets /send tatsumilk@targetIP::mch1
如果上面沒有改權限則會出現下面訊息
@ERROR: auth failed on module mch1
rsync error: error starting client-server protocol (code 5) at main.c(1383) [sender=2.6.9]
參考網頁
http://www.csie.nctu.edu.tw/~tsaiwn/course/introcs/history/linux/linux.tnc.edu.tw/techdoc/rsync.htm
# vi /etc/rsyncd.conf
[mch1]# vi /etc/rsyncd.secrets
path = /backup
auth users = tatsumilk
uid = root
gid = root
secrets file = /etc/rsyncd.secrets
read only = no
tatsumilk:1234567
# chmod 600 /etc/rsyncd.secrets
重要!不然會auth failed
# rsync --daemon
initiator(丟人的)
# vi /home/.../rsyncd.secrets
1234567
# rsync -av --password-file=/home/.../rsyncd.secrets /send tatsumilk@targetIP::mch1
如果上面沒有改權限則會出現下面訊息
@ERROR: auth failed on module mch1
rsync error: error starting client-server protocol (code 5) at main.c(1383) [sender=2.6.9]
參考網頁
http://www.csie.nctu.edu.tw/~tsaiwn/course/introcs/history/linux/linux.tnc.edu.tw/techdoc/rsync.htm
linux moodle 使用套件
php-common-5.1.6-3.7.fc6
php-odbc-5.1.6-3.7.fc6
php-cli-5.1.6-3.7.fc6
php-pgsql-5.1.6-3.7.fc6
php-mbstring-5.1.6-3.7.fc6
php-pdo-5.1.6-3.7.fc6
php-5.1.6-3.7.fc6
php-gd-5.1.6-3.7.fc6
php-xmlrpc-5.1.6-3.7.fc6
php-ldap-5.1.6-3.7.fc6
php-mysql-5.1.6-3.7.fc6
httpd-2.2.6-1.fc6
system-config-httpd-1.4.1-1.fc6
httpd-manual-2.2.6-1.fc6
libdbi-dbd-mysql-0.8.1a-1.2.2
mod_auth_mysql-3.0.0-3.1
mysql-server-5.0.27-1.fc6
mysql-connector-odbc-3.51.12-2.2
mysql-5.0.27-1.fc6
mysql-devel-5.0.27-1.fc6
php-mysql-5.1.6-3.7.fc6
mysql-bench-5.0.27-1.fc6
php-odbc-5.1.6-3.7.fc6
php-cli-5.1.6-3.7.fc6
php-pgsql-5.1.6-3.7.fc6
php-mbstring-5.1.6-3.7.fc6
php-pdo-5.1.6-3.7.fc6
php-5.1.6-3.7.fc6
php-gd-5.1.6-3.7.fc6
php-xmlrpc-5.1.6-3.7.fc6
php-ldap-5.1.6-3.7.fc6
php-mysql-5.1.6-3.7.fc6
httpd-2.2.6-1.fc6
system-config-httpd-1.4.1-1.fc6
httpd-manual-2.2.6-1.fc6
libdbi-dbd-mysql-0.8.1a-1.2.2
mod_auth_mysql-3.0.0-3.1
mysql-server-5.0.27-1.fc6
mysql-connector-odbc-3.51.12-2.2
mysql-5.0.27-1.fc6
mysql-devel-5.0.27-1.fc6
php-mysql-5.1.6-3.7.fc6
mysql-bench-5.0.27-1.fc6
linux phpMyAdmin
fedora剛灌好是沒有附phpMyAdmin
# yum install phpMyAdmin
因為習慣用web介面所以/etc/phpMyAdmin/config.inc.php裡用預設即可
# vi /etc/httpd/conf.d/phpMyAdmin.conf
# But allowing phpMyAdmin to anyone other than localhost should be considered
# dangerous unless properly secured by SSL
Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin
order deny,allow
deny from all
allow from 127.0.0.1
allow from ::1
allow from all
# This directory does not require access over HTTP - taken from the original
# phpMyAdmin upstream tarball
#
Order Deny,Allow
Deny from All
Allow from all
換成IP是比較保險,不過寫all就可以連上去了
# yum install phpMyAdmin
因為習慣用web介面所以/etc/phpMyAdmin/config.inc.php裡用預設即可
# vi /etc/httpd/conf.d/phpMyAdmin.conf
# But allowing phpMyAdmin to anyone other than localhost should be considered
# dangerous unless properly secured by SSL
Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin
order deny,allow
deny from all
allow from 127.0.0.1
allow from ::1
allow from all
# This directory does not require access over HTTP - taken from the original
# phpMyAdmin upstream tarball
#
Order Deny,Allow
Deny from All
Allow from all
換成IP是比較保險,不過寫all就可以連上去了
2010年5月5日 星期三
550 create directory operation failed
其實事情還沒結束....
在傳輸檔案時發生了
不用想也知道又是SElinux了...
550 create directory operation failed
重開機後...終於啊...
# vi /etc/selinux/config
設定SELINUX=disable
--
參考網頁
http://blog.techippo.org/archives/351
http://www.uncle.ws/2010/04/vsftp-550-create-directory-operation-failed/
2010年5月4日 星期二
500 OOPS: cannot change directory:/home/
裝完vsftpd後
client端出現
500 OOPS: cannot change directory:/home/
google大部分是 說
但會出現
setsebool ftpd_disable_trans 1
其實是SElinux限制住了,所以改key
Could not change active booleans: Invalid boolean
就可以囉!
setsebool -P ftp_home_dir=1
--
參考網頁
http://www.rossi.url.tw/wordpress/?p=204
http://wiki.ubuntu.org.cn/Vsftpd%E8%99%9A%E6%8B%9F%E7%94%A8%E6%88%B7%E8%AE%BE%E7%BD%AE
http://adai0620.blog.ccidnet.com/blog-htm-do-showone-type-blog-itemid-406513-uid-68468.html
訂閱:
文章 (Atom)