Difference between revisions of "Technique Knowledge of Webmin"

From ESS-WIKI
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Webmin How to install on Ubuntu 14.04 =
+
= [[How_to_install_Webmin_on_Ubuntu_14/16.04|How to install Webmin on Ubuntu-14/16.4]] =
  
= How to install =
+
= [[Install_Perl_Module_SOP|How to Install Perl module Persistent::Memory]] =
 
 
首先加入 Webmin 官方 repository, 開啟檔案&nbsp;<code>/etc/apt/sources.list</code>
 
<pre>$ vi /etc/apt/sources.list</pre>
 
 
 
加入以下兩行:
 
<pre>deb http://download.webmin.com/download/repository sarge contrib
 
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib
 
</pre>
 
 
 
然後取得以上 repository 的 GPG key:
 
<pre>$ wget http://www.webmin.com/jcameron-key.asc
 
$ apt-key add jcameron-key.asc
 
</pre>
 
 
 
更新 apt-get 就可以開始安裝了:
 
<pre>$ apt-get update
 
$ apt-get install -y webmin
 
</pre>
 
 
 
Webmin 預設使用 10000 埠號, 設定 firewall 開通 10000 埠號:
 
<pre>$ ufw allow 10000
 
</pre>
 
 
 
預設帳號密碼為 root 之帳號密碼, 可以這樣存取:
 
<pre>http://localhost:10000
 
 
https://localhost:10000
 
</pre>
 
 
 
= Config file path =
 
 
 
Webmin module 的目錄放置此路徑下.
 
<pre>$ cd /usr/share/webmin
 
</pre>
 
 
 
<code>module.infos.cache</code>&nbsp;路徑
 
<pre>$ /var/webmin/module.infos.cache
 
</pre>
 
 
 
set module ACL
 
<pre>$ vi /etc/webmin/webmin.acl
 
</pre>
 
 
 
Restart webmin
 
<pre>$ /etc/init.d/webmin restart
 
</pre>
 
 
 
Webmin main process
 
<pre>$ vi /usr/share/webmin/miniserv.pl
 
</pre>
 
 
 
Webmin main process read below config
 
<pre>$ vi /etc/webmin/miniserv.conf</pre>
 

Latest revision as of 04:15, 21 April 2017

How to install Webmin on Ubuntu-14/16.4

How to Install Perl module Persistent::Memory