全文検索:
- 05 rsync @02_freebsd:01_net
- ====== ===== インストール ===== <code> # cd /usr/ports/net/rsync # make install </code> ===== バージョン ===== ... 使って、自動でホスト間のバックアップを行うにはSSHの設定が必要です。 [[01_linux:01_net:06_sshd鍵]] ===== 例 ===== ・/homeを/work/backupとして
- ipコマンド/IPエイリアス追加 @02_freebsd:80_unixコマンド
- R_UP> mtu 16436 qdisc noqueue state UNKNOWN inet 127.0.0.1/8 scope host lo 2: eth0: <BROADCAST,MUL... mtu 1500 qdisc pfifo_fast state UP qlen 1000 inet 192.168.100.195/24 brd 192.168.100.255 scope global eth0 inet 192.168.100.1/24 brd 192.168.100.255 scope global secondary eth0 inet 192.168.100.5/24 brd 192.168.100.255 scope global
- 91 MySQL のダンプを小さくする @02_freebsd:04_database:01_mysql
- Tをgrep -v で削ってやれば、戻すのが早くなる。 # grep -v 'INSERT INTO `net_hourly_stats`' a.sql > b.sql {{tag>mysql}}
- ifconfig @02_freebsd:80_unixコマンド
- アドレスファミリーを指定する。(デフォルトTCP/IPを表すinet) IPアドレス ネットワークインターフェイスのI... ST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 172.17.1.1 netmask 0xffffff00 broadcast 172.17.1.... ST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 172.17.1.99 netmask 0xffffff00 broadcast 172.17.1
- 07 DHCPD @02_freebsd:01_net
- みる ====== portsから ====== <code> # cd /usr/ports/net/isc-dhcp3-server # make install clean # cp /usr... -facility local6; # Declaracao de Subrede. subnet 192.168.1.0 netmask 255.255.255.0 { # ... 2.168.1.1; } host ThinkPad { hardware ethernet 00:05:4E:45:58:04; fixed-address 192.168.1.20; } host ValueStar{ hardware ethernet 00:90:96:1B:83:FA; fixed-address 192.168.1.15;
- 06 squid @02_freebsd:01_net
- して確認します。⇒[[Windows/Proxy]]~ これ⇒[[診断君>http://taruo.net/e/]]でチェックしてみました。 ===== キャッシュクリア ===== ■下記の手順でキャ
- 03 Postfix + amavisd + clamav @02_freebsd:03_mail
- freebsd/clamav.html]] ==== postfixの設定 ==== === inet_interfaces === <code> # vi /usr/local/etc/postfi... n.cf ------------------------------------------- inet_interfaces = all # どこからでも接続OK inet_interfaces = localhost # localhostからだけ接続OK </code> localhostからだけ接
- netstat @02_freebsd:80_unixコマンド
- クの統計情報を表示する| |-f|指定したプロトコル情報のみ表示 \\ $ netstat -f inet (インターネットプロトコルのみ表示) \\ $ netstat -f unix (UNIX ドメイ... <code console> root@vaio$ netstat Active Internet connections Proto Recv-Q Send-Q Local Address ... ESTABLISHED tcp4 0 2 vaio.telnet ThinkPad.3716 ESTABLISHED tc... 346 46 173480 6 14006 de0 1500 progre-net/24 genesis2 294346 46 173480 6
- route @02_freebsd:80_unixコマンド
- === ルーティングを追加する === <code console> # route add -net 192.168.1.0 netmask 255.255.255.0 eth0 </code> === ルーティングを削除する === <code> # route del -net 192.168.1.0 netmask 255.255.255.0 eth0 </code> ==== Linuxコマンド例 ==== <code console> route add -net 10.200.0.0/16 gw 192.168.10.1 route delete -net 10.200.0.0/16 gw 192.168.10.1 </code> <code console>
- 04 TCPwrapper @02_freebsd:01_net
- etc/inetd.conf ===== === tcpdで一括制御 === <code> telnet stream tcp nowait root /usr/libexec/tcpd in.telne... ===== inetdの再起動 ===== <code console> # kill -HUP `cat /var/run/inetd.pid` </code> {{tag>FreeBSD:net}}
- 03 inetd @02_freebsd:01_net
- 起動をかける、いわゆるトリガー的な存在のサーバ上のプログラムです。 [[02_freebsd:01_net:04_tcpwrapper|TCPWrapper]]によるアクセス制御が可能です。 FreeBSD... owait root /usr/libexec/ftpd ftpd -l telnet stream tcp nowait root /usr/libexec/telnetd telnetd #telnet stream tcp6 nowait root /usr/libexec/teln... y:tty /usr/libexec/ntalkd ntalkd ここの#を外して [[02_freebsd:01_net:03_inetd#2.inetdの再起動|inetdの再起動]]をする。
- 01 qmHandle @02_freebsd:03_mail
- <code console> fech http://qmhandle.sourceforge.net/ </code> ===== インストール ===== すべてperlで書かれている為viで編集
- Apache 2.0 + MySQL + PHP @02_freebsd:02_www
- ode> ====== インストール(PHP) ====== [[http://www.php.net/downloads.php|PHP本家]]よりダウンロードしてくる。 <code console>
- IPアドレス-アドレスナンバー @02_freebsd:04_database:01_mysql
- ====== IPアドレス-アドレスナンバー ====== INET_NTOA <code console> mysql> select id,inet_ntoa(ip_number) from ip_addresses; +------+----------------------+ | id | inet_ntoa(ip_number) | +------+----------------------+... -----------+ 1 row in set (0.00 sec) </code> 逆は INET_ATON <code console> mysql> select INET_ATON('10.1