顯示具有 Linux 標籤的文章。 顯示所有文章
顯示具有 Linux 標籤的文章。 顯示所有文章

2014年2月20日 星期四

[Linux] Lighttpd

Lighttpd official site
Lighttpd configuration

[Linux] ProFTPD

ProFTPD official site
Proftpd configuration

2012年7月16日 星期一

[Linux] Shell Script check value enable/disable

#!/bin/sh
CHECK_FILE="/var/value_check"
CHECK_ENABLE=`cat $CHECK_FILE`
echo "CHECK_ENABLE=$CHECK_ENABLE"
if [ -f $CHECK_FILE -a -n $CHECK_ENABLE ]; then
        if [ $CHECK_ENABLE -eq 1 ]; then
                echo "enable";
        else
                echo "disable 1";
        fi
else
        echo "disable 2";
fi

2012年6月28日 星期四

[Linux] Minimal syslog file

# fix logs into memory instead of /var/log/messages. and the log size is 512 KB
syslogd -C 512
# to read the logs
logread