全文検索:
- tar @02_freebsd:80_unixコマンド
- ィスク(/dev/fd0)にアーカイブする ==== <code console> # cd /etc # tar cf /dev/fd0 ./*\ </code> ==== アーカイブ内のファイル... する ==== <code console> # tar tf /dev/fd0 |head etc/X11/ etc/aliases etc/amd.map etc/antivir.conf etc/apmd.conf etc/auth.conf etc/avguard.conf etc/crontab e
- 05 rsync @02_freebsd:01_net
- /backup </code> ===== デーモンで立ち上げる場合 ===== ==== /etc/inetd.confに追加 ==== <code> # vi /etc/inetd.conf rsync stream tcp nowait root /usr/local/bin/rsync rsyncd --daemon </code> ==== /usr/local/etc/rsyncd.conf ==== <code> pid file = /var/run/rsyn... wheel auth users=backup secrets file=/usr/local/etc/rsyncd.secrets hosts allow = 192.168.1.0/24 hos
- 15 MySQL 55 to 56 で問題 @02_freebsd:04_database:01_mysql
- 両方でsecure_authが無効になっている必要があります。 === Server側 === /etc/my.cnf [mysqld] secure_auth=0 === Client側 ==... --------+ 1 row in set (0.00 sec) </code> === /etc/my.cnf === 再起動後も設定反映させるために、my.cnfも修正 sql_mode
- MySQL - ログローテート @02_freebsd:04_database:01_mysql
- 行するような処理が必要になります。 ====== MySQLのログをローテート ====== /etc/newsyslog.confに記述。 今回は一週間分、圧縮せずにローテートするよう記述。 <code> # vi /etc/newsyslog.conf -----------------追加--------------... -----------------追加-------------------- </code> /etc/crontabにパーミッション変更とMySQLのflush-logsを実行。 <code> # vi /etc/crontab 01 0 * * * root /usr/sbin/chown mysql /v
- MySQL - パスワードを忘れた @02_freebsd:04_database:01_mysql
- ===== my.cnfに「skip-grant-tables」を追加 ===== # vi /etc/my.cnf skip-grant-tables ===== mysqlを再起動 ===== # /etc/init.d/mysql restart ===== パスーワード無しで入れるようになる。 ==
- PostgreSQLインストール @02_freebsd:04_database:02_posgresql
- e> # yum install readline-devel </code> ====== /etc/rc.confの編集 ====== 下記を追加 <code console> # Postgr... e> # cp contrib/start-scripts/freebsd /usr/local/etc/rc.d/postgresql.sh # chmod 755 /usr/local/etc/rc.d/postgresql.sh </code> ====== 起動 ====== <code console> # /usr/local/etc/rc.d/010.pgsql.sh start </code> {{tag>PostgreSQL
- 07 DHCPD @02_freebsd:01_net
- cp3-server # make install clean # cp /usr/local/etc/dhcpd.conf.sample /usr/local/etc/dhcpd.conf # chmod 644 /usr/local/etc/dhcpd.conf </code> ====== ソースを持ってくる ====== ISC http://www.isc... .168.1.11; } </code> ====== シェルを用意する/usr/local/etc/rc.d/dhcpd.sh ====== <code> #!/bin/sh case "$
- 06 squid @02_freebsd:01_net
- e install clean ;rehash </code> ===== /usr/local/etc/squid/squid.confを設定 ===== ログディレクトリとキャッシュディレクトリを変... squid -z </code> ■起動シェルにて起動。 <code> # /usr/local/etc/rc.d/squid start </code> ===== 確認 ===== 後はブラウザに... す。起動シェルなどに組み込んだ方がいいかもしれません。~ <code> # /usr/local/etc/rc.d/squid stop # rm -rf /usr/local/squid/cache/* # squid -z # /usr/local/etc/rc.d/squid start </code> ===== ログローテート ===== ■s
- file @02_freebsd:80_unixコマンド
- ファイル名 ===== コマンド例 ===== <code console> > file /etc/hosts /etc/hostsを調べる /etc/hosts: ASCII text テキストファイルであることが分かる > file /etc /etcを調べる /etc: directory
- 03 Postfix + amavisd + clamav @02_freebsd:03_mail
- rts/security/clamav # make install </code> ==== /etc/rc.confに追加 ==== <code> # ClamAV clamav_clamd_enab... e="YES" </code> ==== 起動 ==== <code> # /usr/local/etc/rc.d/clamav-clamd start # /usr/local/etc/rc.d/clamav-freshclam start </code> ===== Postfixインストール ====... y これは y。 Would you like to activate Postfix in /etc/mail/mailer.conf [n]? y </code> ==== /etc/rc.con
- htpasswd @02_freebsd:80_unixコマンド
- ユーザ名(matsui)を追加 ==== <code console> # htpaawd -c /etc/access.htpasswd matsui New password: ***** Re-typ... code> ==== ユーザの追加 ==== <code console> # htpaawd /etc/access.htpasswd hgoehoge New password: ***** Re-t... > ==== ユーザの削除 ==== <code console> # htpasswd -D /etc/access.htpasswd matsui Deleting password for user
- vipw @02_freebsd:80_unixコマンド
- ====== vipw ====== ===== 機能 ===== vipwコマンドは、/etc/passwdファイルを直接編集します。 vipwコマンドを実行すると、エディタが起動し/etc/passwdがオープンします。 起動されるエディタは、環境変数EDITORで指定したエディタに変更できます。... ===== コマンド例 ===== <code> # vipw # $FreeBSD: src/etc/master.passwd,v 1.25.2.6 2002/06/30 17:57:17 des
- tree @02_freebsd:80_unixコマンド
- snmpdiskio | |-- tbench | `-- tbench_srv |-- etc | `-- suphp.conf |-- games |-- include |-- lib
- time @02_freebsd:80_unixコマンド
- xec/ rescue/ sys@ cdrom/ etc/ mnt/ root/ tmp/
- dump @02_freebsd:80_unixコマンド
- する| |-s|バックアップメディアの容量をフィート単位で指定する| |-u|バックアップ終了時に/etc/dumpdatesのバックアップ記録を更新する| ===== コマンド例 ===== ===