use chroot = yes
read only = yes
[squid]
path = /var/log/squid
comment = squid logs
include = *.log
list = yes
uid = proxy
gid = proxy
auth users = squid
secrets file = /var/log/squid/rsync.secrets
hosts allow = 192.168.0.254
Tuesday, May 24, 2011
rsync
error code : rsync: link_stat "." (in squid) failed: Permission denied (13)
Monday, May 23, 2011
Clock Synchronization with NTP
FreeBSD
#ntpdate -v -b 3.id.pool.ntp.org
rc.conf
ntpdate_enable="YES"
3.id.pool.ntp.org
ntpdate_hosts=""
OpenBSD
rc.conf
ntpd_flags="-s"
MySQL FreeBSD Install
#
# pw groupadd mysql
# mkdir /server1/
# mkdir /server1/etc/
# chown -R mysql:mysql /server1/
# cp my.cnf /server1/etc/
# nano -w /etc/hosts
127.0.0.1 localhost db1
# /usr/local/bin/mysql_install_db --defaults-extra-file=/server1/etc/my.cnf &
# echo "mysql_enable="YES" >> /etc/rc.conf
#
# pw groupadd mysql
# mkdir /server1/
# mkdir /server1/etc/
# chown -R mysql:mysql /server1/
# cp my.cnf /server1/etc/
# nano -w /etc/hosts
127.0.0.1 localhost db1
# /usr/local/bin/mysql_install_db --defaults-extra-file=/server1/etc/my.cnf &
# echo "mysql_enable="YES" >> /etc/rc.conf
#
Thursday, May 19, 2011
cpu info freebsd
db1# sysctl -a | egrep -i 'kern.version|hw.machine|hw.model|hw.ncpu'
kern.version: FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011
hw.machine: amd64
hw.model: Intel(R) Xeon(R) CPU E5507 @ 2.27GHz
hw.ncpu: 4
hw.machine_arch: amd64
Subscribe to:
Posts (Atom)