tar解壓縮不用加-z或-j
作者:cross 日期:2006-12-20 20:55
MySQL3升級MySQL4 + 亂碼問題
作者:cross 日期:2006-12-18 22:05
Postfix + main.cf + queue
作者:cross 日期:2006-12-17 00:49
bac_function
作者:cross 日期:2006-12-16 00:25
bac_serv.sh
作者:cross 日期:2006-12-16 00:24
#!/bin/bash
# 2006/12/04 be authored by cross@ssorc.tw
#
# Purpose:
# Increment backup and keeps the data some days.
#
# ChangeLog:
# 2007/04/17 fixed 保留備份逾一個月
# 2006/12/15 fixed bac_function path
# "source bac_function" to "source `echo ${0%/*}`/bac_function"
# fixed "if file exist and exit 0" to "if []; then else fi"
#
# Plan:
# 2007/xx/xx add sync or hard link
# 2007/xx/xx add check space dir and exclude it.
# 2007/xx/xx add scp options for Yes or No.
# 2007/xx/xx add which database can be choice.
# 2007/xx/xx add display the progress, or not.
#
#set -x
export LANG=C
查看 logrotate 沒有運作的原因
作者:cross 日期:2006-12-16 00:09
Postfix + virtual domain + MySQL + Dovecot + mailbox
作者:cross 日期:2006-12-12 13:30
[1] 編譯
更新 postfix-2.3.3
make -f Makefile.init makefiles 'CCARGS=-DHAS_MYSQL -DUSE_SASL_AUTH -DUSE_TLS -DDEF_SERVER_SASL_TYPE="dovecot" -I/usr/include/mysql' 'AUXLIBS=-L/usr/lib/mysql -lmysqlclient -lssl -lcrypto -lz -lm'
make upgrade
更新 dovecot-1.0.rc15
./configure --with-pgsql --with-sql --with-pam --with-shadow --with-passwd-file --with-passwd --with-mysql
make && make install
[2] 建立 MySQL
CREATE TABLE `domains` (



