本文讲述如何在FreeBSD系统中安装Webmin,教程如下:
一、升级ports
#portsnap fetch update
二、执行Webmin命令
# cd /usr/ports/sysutils/webmin
# make install clean
三、配置Webmin服务
# vi /etc/rc.conf
把下面的内容添加到rc.conf文件中
webmin_enable=”YES”
保存并关闭文件。
或者运行
#echo "webmin_enable="YES"" >> /etc/rc.conf
效果与上面的方法一样。
四、安装并设置Webmin
# cd /usr/local/lib/webmin/
# ./setup.sh
在屏幕上会出现下面内容:
*********************************************************************** * Welcome to the Webmin setup script, version 1.570 * *********************************************************************** Webmin is a web-based interface that allows Unix-like operating systems and common Unix services to be easily administered. Installing Webmin in /usr/local/lib/webmin … *********************************************************************** Webmin uses separate directories for configuration files and log files. Unless you want to run multiple versions of Webmin at the same time you can just accept the defaults. Log file directory [/var/log/webmin]:<strong> (默认设置直接按Enter回车键即可)</strong> *********************************************************************** Webmin is written entirely in Perl. Please enter the full path to the Perl 5 interpreter on your system. Full path to perl (default /usr/bin/perl): <strong>(默认设置直接按Enter回车键即可)</strong> Testing Perl … Perl seems to be installed ok *********************************************************************** Operating system name: FreeBSD Operating system version: 8.0 *********************************************************************** Webmin uses its own password protected web server to provide access to the administration programs. The setup script needs to know : - What port to run the web server on. There must not be another web server already using this port. - The login name required to access the web server. - The password required to access the web server. - If the webserver should use SSL (if your system supports it). - Whether to start webmin at boot time. Web server port (default 10000): <strong>(默认设置直接按Enter回车键即可)</strong> Login name (default admin): <strong>(默认设置直接按Enter回车键即可)</strong> Login password: <strong>(输入密码)</strong> Password again: <strong>(再次输入密码)</strong> Use SSL (y/n): <strong>(是否使用SSL方式登录Webmin,输入y或者n)</strong> *********************************************************************** Creating web server config files.. ..done Creating access control file.. ..done Creating start and stop scripts.. ..done Copying config files.. ..done Changing ownership and permissions .. ..done Running postinstall scripts .. PID file /var/log/webmin/miniserv.pid does not exist : Permission denied syslog-ng: not found : Permission denied ..done Enabling background status collection .. PID file /var/log/webmin/miniserv.pid does not exist ..done
五、启动Webmin服务
# /usr/local/etc.rc.d/webmin start
六、打开浏览器,输入
https://服务器IP地址:10000
出现Webmin登录界面。
至此,成功安装Webmin。
转载请注明:爱开源 » FreeBSD安装Webmin教程