Windows nginx mysql linux命令 程序员 微软 linux Ubuntu 开源 php HTML5 google centos apache java shell Android wordpress Python Firefox

FreeBSD安装Webmin教程

本文讲述如何在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]: (默认设置直接按Enter回车键即可)

***********************************************************************

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): (默认设置直接按Enter回车键即可)

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): (默认设置直接按Enter回车键即可)

Login name (default admin): (默认设置直接按Enter回车键即可)

Login password: (输入密码)

Password again: (再次输入密码)

Use SSL (y/n):  (是否使用SSL方式登录Webmin,输入y或者n)

***********************************************************************

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。

延伸阅读

评论