FreeBSD/インストール9.1-RC3 king仕様 その2 /etc/aliases root: kenji@zenno.com newaliases mkdir /log mkdir /data mkdir /data/pub mkdir /data/pub/king mkdir /data/pub/honbu vi fstab # Device Mountpoint FStype Options Dump Pass# /dev/mirror/p2 / ufs rw 1 1 /dev/mirror/p4 /log ufs rw 2 2 /dev/mirror/p5 /data ufs rw 2 2 /dev/stripe/p3 none swap sw 0 0 /usr/local/etc/rc.d/mysql-server stop cd /var/db/ mv mysql /data/ ln -s /data/mysql mysql vi /var/db/mysql/my.cnf [mysqld] max_connections=1000 thread_cache=100 character-set-server=eucjpms skip-character-set-client-handshake /usr/local/etc/rc.d/mysql-server start pkg_add -rv rsync rsync -av kazuto:/usr/local/share/PHPExcel-1.7.7/ /usr/local/share/PHPExcel-1.7.7/ rsync -av kazuto:/usr/local/share/fpdf/ /usr/local/share/fpdf/ rsync -av --delete kazuto:/data/pub/kens/ /data/pub/kens/ rsync -av --delete kazuto:/data/pub/honbu/ /data/pub/honbu/ cd /data mysqldump -hkazuto -ukenji -p******* --databases honbu kens > king.sql.dump mysql -p******** < king.sql.dump cd /usr/local/etc/apache22/extra/ vi httpd-vhosts.conf cd ../ vi http.conf # Virtual hosts Include etc/apache22/extra/httpd-vhosts.conf Samba |