FreeBSD 13.1 RELEASE - Webmin - インストール
- 1. 概要
- 2. インストール
- 3. セットアップ
- 4. /etc/rc.conf
- 5. /etc/newsyslog の編集
- 6. 起動
1. 概要
「Webmin」はブラウザを通して、「FreeBSD」のマシンを管理できるツールです。
詳細は「Webmin - Wikipedia」をご参照ください。
2. インストール
cd /usr/ports/sysutils/webmin/
make
make install
オプションはありません。
インストールの時メッセージを掲載しておきます。
==> Installing for webmin-1.990
==> Checking if webmin is already installed
==> Registering installation for webmin-1.990
nstalling webmin-1.990...
fter installing Webmin for the first time you should perform the following
teps as root:
Configure Webmin by running /usr/local/lib/webmin/setup.sh
Add webmin_enable="YES" to your /etc/rc.conf
Start Webmin for the first time by running "service webmin start"
he parameters requested by setup.sh may then be changed from within Webmin
tself.
2020年7月28日の時点で、バージョン「1.941」でした。
2021年5月28日の時点で、バージョン「1.973」
今回(2022年5月30日)、「1.990」で少しずつ、上がっています。
3. セットアップ
以下の要領で初期セットアップを行います。
/usr/local/lib/webmin/setup.sh
以下、入力のプロンプトがあるところのみ抜粋しています。
↓Webmin のログ出力先(変更なしであれば Enter)
Log file directory [/var/log/webmin]:
↓perl の存在するディレクトリ(変更なしであれば Enter)
Full path to perl (default /usr/local/bin/perl):
↓アクセスするポート番号(変更なしであれば Enter)
Web server port (default 10000):
↓Webmin にログインするユーザ名を入力
Login name (default admin):
↓パスワードを2回入力(エコーバックされない)
Login password:
Password again:
↓SSL 使用の有無(y を推奨)
Use SSL (y/n): y Enter
ポート番号等、変更可能ですが、ポートスキャンされればポートは確認されてしまいます。
ポート番号を変更するしないより、後述する IP アドレス制限により接続可能なアドレスを制限すべきです。
「SSL」はセキュリティのために使用すべきです。
4. /etc/rc.conf の編集
「webmin」を有効化します。
「root」ユーザ権限で。
sysrc webmin_enable=YES
5. /etc/newsyslog の編集
Webmin のログは
/var/log/webmin/miniserv.error
/var/log/webmin/miniserv.log
に出力されます。
一応、参考までにわたしのログローテーション設定は
/usr/local/etc/newsyslog.conf.d/webmin.conf
を作成して、以下のように記述しています。
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
/var/log/webmin/*.log 644 10 100 * BG
/var/log/webmin/*.error 644 10 100 * BG
フラグ等の意味は「メンテナンス・トラブルシュート - ログ」をご参照ください。
6. 起動
起動スクリプトは
/usr/local/etc/rc.d/webmin
です。
service webmin start
で起動します。
|
|