User Tools

Site Tools


linux:services

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
linux:services [2016/12/15 07:54] – [install on Windows] adminlinux:services [2019/11/11 08:51] – [install on linux] admin
Line 18: Line 18:
 ==== install on linux ==== ==== install on linux ====
   * pre setup(for https)<code bash>   * pre setup(for https)<code bash>
-tar xzpf Net_SSLeay.pm-1.23.tar.gz +yum -y install perl perl-Net-SSLeay openssl perl-IO-Tty perl-Encode-Detect
-cd Net_SSLeay.pm-1.23 +
-perl Makefile.PL +
-make install+
 </code> </code>
   * Download and install from rpm package:<code bash>   * Download and install from rpm package:<code bash>
-wget http://nchc.dl.sourceforge.net/project/webadmin/webmin/1.480/webmin-1.480-1.noarch.rpm +wget http://prdownloads.sourceforge.net/webadmin/webmin-1.930-1.noarch.rpm 
-rpm -webmin-1.480-1.noarch.rpm+rpm -webmin-1.930-1.noarch.rpm
     </code> with webmin new version: we copy the webmin source to **/usr/local** before setup     </code> with webmin new version: we copy the webmin source to **/usr/local** before setup
   * install from source<code bash>   * install from source<code bash>
 ./setup.sh => install from source with default port: 10000 ./setup.sh => install from source with default port: 10000
 +</code>
 +  * uninstall it:<code bash>
 +/etc/webmin/uninstall.sh
 </code> </code>
 ==== install on Windows ==== ==== install on Windows ====
Line 35: Line 35:
   * https://sourceforge.net/p/webadmin/discussion/600155/thread/637a6415/   * https://sourceforge.net/p/webadmin/discussion/600155/thread/637a6415/
 Below are steps to Install Webmin on Windows: Below are steps to Install Webmin on Windows:
-  - Step1: Install activeperl **32bits**(not 64bits) => Because webmin only support perl 32bits +  - Step1: Install activeperl **32bits**(not 64bits) => Because webmin only support perl 32bits(version in example is ActivePerl-5.24.0.2400-MSWin32-x86-64int-300560) 
-  - Step2: Download webmin zip file for windows from http://www.webmin.com/download.html and unzip it to **c:\webmin** +  - Step2: Download webmin zip file for windows from http://www.webmin.com/download.html and unzip it to **c:\webmin**(Version in document is http://prdownloads.sourceforge.net/webadmin/webmin-1.820.zip) 
-  - Step3: Append c:\webmin in Environment Variable PATH change.+  - Step3: Append **c:\webmin** in Environment Variable **PATH** change.
   - Step4: Download http://retired.beyondlogic.org/solutions/processutil/process203.zip and copy it to **c:\webmin**   - Step4: Download http://retired.beyondlogic.org/solutions/processutil/process203.zip and copy it to **c:\webmin**
   - Step5: Go to  c:\webmin and Install the Win32::Daemon Perl module. <code bat>   - Step5: Go to  c:\webmin and Install the Win32::Daemon Perl module. <code bat>
Line 43: Line 43:
 ppm install Win32-Daemon ppm install Win32-Daemon
 </code> </code>
-  - Step6: install webmin:<code bat>+  - Step6: install webmin(You must **run DOS as admin**):<code bat>
 perl setup.pl perl setup.pl
 </code>With configs below:<code> </code>With configs below:<code>
 For config, type "c:\etc" For config, type "c:\etc"
 For logs, type "c:\temp" For logs, type "c:\temp"
-type 10000 for port +type 10000 for port 
 +no ssl
 </code> </code>
 +  - Step7: Go to http://localhost:10000 to login webmin and **refresh modules**
 ==== config file and start, stop webmin ==== ==== config file and start, stop webmin ====
   * config file:<code>   * config file:<code>
Line 325: Line 327:
   * NTP server: 10.30.31.127   * NTP server: 10.30.31.127
   * date +%Y%m%d -s "20091125"   * date +%Y%m%d -s "20091125"
-  * NTP Client: +  * NTP Client:<code bash> 
-  /usr/sbin/ntpdate -s -b -p 8 -u 10.30.31.127 +/usr/sbin/ntpdate -s -b -p 8 -u 10.30.31.127 
 +</code> 
 +Open Iptable firewall:<code bash> 
 +-A INPUT -i eth0 -p udp -m multiport --dports 123,161 -j ACCEPT 
 +</code>Or<code bash> 
 +-A INPUT -p udp -i eth0 --dport 123 -j ACCEPT 
 +-A INPUT -p udp -i eth0 --dport 161 -j ACCEPT 
 +</code>
 ====== nfs ====== ====== nfs ======
 ===== nfs server ===== ===== nfs server =====
-==== check nfs server is started or not ==== +==== check nfs server and Install It ==== 
-  ps -eaf | grep nfs+  * Check nfs server is running<code bash> 
 +ps -eaf | grep nfs 
 +</code> 
 +  * Install Nfs Server<code bash> 
 +yum install nfs-utils nfs-utils-lib 
 +</code> 
 +  * Start Nfs server:<code bash> 
 +/etc/init.d/rpcbind start 
 +/etc/init.d/nfs start 
 +</code>
  
 ==== config nfs server in /etc/exports ==== ==== config nfs server in /etc/exports ====
Line 357: Line 374:
   Copy rootfs from CD(2007WLP) to /work/rootfs-sgwp-080403-2-wtk.tar.bz2 and extract it.   Copy rootfs from CD(2007WLP) to /work/rootfs-sgwp-080403-2-wtk.tar.bz2 and extract it.
 ===== nfs client with mount ===== ===== nfs client with mount =====
-  mount -a +Below are steps config in client with mount
-cat /etc/fstab +  Step1: Install nfs<code bash> 
-  10.30.31.8:/databk/ztbackup/db  /data/dbzt      nfs     defaults        0 0 +yum install nfs-utils nfs-utils-lib 
-  10.30.31.8:/databk/ztbackup/logzt  /data/countitem/logzt      nfs     defaults        0 0 +</code> 
-  10.30.31.8:/databk/ztbackup/dbreport  /var/lib/mysql      nfs     defaults        0 0+  - Step2: config mount in /etc/fstab:<code bash> 
 +10.30.31.8:/databk/ztbackup/db  /data/dbzt      nfs     defaults        0 0 
 +10.30.31.8:/databk/ztbackup/logzt  /data/countitem/logzt      nfs     defaults        0 0 
 +10.30.31.8:/databk/ztbackup/dbreport  /var/lib/mysql      nfs     defaults        0 0 
 +</code> 
 +  - Step3: active mount:<code bash> 
 +mount -a 
 +</code> 
 +Check nfs server with mount command: 
 +  * mount:<code bash> 
 +mount 10.30.31.8:/databk/ztbackup/db  /data/dbzt 
 +</code> 
 +  * umount:<code bash> 
 +umount 10.30.31.8:/databk/ztbackup/db  /data/dbzt 
 +</code>
 ====== snmpd ====== ====== snmpd ======
   /etc/default/snmpd   /etc/default/snmpd
   snmpwalk -v2c -c public 10.30.43.10   snmpwalk -v2c -c public 10.30.43.10
linux/services.txt · Last modified: 2022/10/29 16:15 by 127.0.0.1