linux:services
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:services [2016/12/15 07:53] – [install on Windows] admin | linux:services [2022/10/29 16:15] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 18: | Line 18: | ||
==== install on linux ==== | ==== install on linux ==== | ||
* pre setup(for https)< | * pre setup(for https)< | ||
- | tar xzpf Net_SSLeay.pm-1.23.tar.gz | + | yum -y install perl perl-Net-SSLeay openssl |
- | cd Net_SSLeay.pm-1.23 | + | |
- | perl Makefile.PL | + | |
- | make install | + | |
</ | </ | ||
* Download and install from rpm package:< | * Download and install from rpm package:< | ||
- | wget http://nchc.dl.sourceforge.net/project/webadmin/ | + | wget http://prdownloads.sourceforge.net/ |
- | rpm -i webmin-1.480-1.noarch.rpm | + | rpm -U webmin-1.930-1.noarch.rpm |
</ | </ | ||
* install from source< | * install from source< | ||
./setup.sh => install from source with default port: 10000 | ./setup.sh => install from source with default port: 10000 | ||
+ | </ | ||
+ | * uninstall it:<code bash> | ||
+ | / | ||
</ | </ | ||
==== install on Windows ==== | ==== install on Windows ==== | ||
Line 35: | Line 35: | ||
* https:// | * https:// | ||
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:// | + | - Step2: Download webmin zip file for windows from http:// |
- | - Step3: Append c:\webmin in Environment Variable PATH change. | + | - Step3: Append |
- Step4: Download http:// | - Step4: Download http:// | ||
- Step5: Go to c:\webmin and Install the Win32:: | - Step5: Go to c:\webmin and Install the Win32:: | ||
Line 43: | Line 43: | ||
ppm install Win32-Daemon | ppm install Win32-Daemon | ||
</ | </ | ||
+ | - Step6: install webmin(You must **run DOS as admin**):< | ||
+ | perl setup.pl | ||
+ | </ | ||
+ | For config, type " | ||
+ | For logs, type " | ||
+ | type 10000 for port | ||
+ | no ssl | ||
+ | </ | ||
+ | - Step7: Go to http:// | ||
==== config file and start, stop webmin ==== | ==== config file and start, stop webmin ==== | ||
* config file:< | * config file:< | ||
Line 319: | Line 327: | ||
* NTP server: 10.30.31.127 | * NTP server: 10.30.31.127 | ||
* date +%Y%m%d -s " | * date +%Y%m%d -s " | ||
- | * NTP Client: | + | * NTP Client:<code bash> |
- | / | + | / |
+ | </ | ||
+ | Open Iptable firewall:< | ||
+ | -A INPUT -i eth0 -p udp -m multiport --dports 123,161 -j ACCEPT | ||
+ | </ | ||
+ | -A INPUT -p udp -i eth0 --dport 123 -j ACCEPT | ||
+ | -A INPUT -p udp -i eth0 --dport 161 -j ACCEPT | ||
+ | </ | ||
====== nfs ====== | ====== nfs ====== | ||
===== nfs server ===== | ===== nfs server ===== | ||
- | ==== check nfs server | + | ==== check nfs server |
- | ps -eaf | grep nfs | + | |
+ | ps -eaf | grep nfs | ||
+ | </ | ||
+ | * Install Nfs Server< | ||
+ | yum install nfs-utils nfs-utils-lib | ||
+ | </ | ||
+ | * Start Nfs server:< | ||
+ | / | ||
+ | / | ||
+ | </ | ||
==== config nfs server in / | ==== config nfs server in / | ||
Line 351: | Line 374: | ||
Copy rootfs from CD(2007WLP) to / | Copy rootfs from CD(2007WLP) to / | ||
===== nfs client with mount ===== | ===== nfs client with mount ===== | ||
- | | + | Below are steps config in client with mount: |
- | cat / | + | |
- | 10.30.31.8:/ | + | yum install nfs-utils nfs-utils-lib |
- | 10.30.31.8:/ | + | </ |
- | 10.30.31.8:/ | + | - Step2: config mount in /etc/fstab:<code bash> |
+ | 10.30.31.8:/ | ||
+ | 10.30.31.8:/ | ||
+ | 10.30.31.8:/ | ||
+ | </ | ||
+ | - Step3: active mount:< | ||
+ | mount -a | ||
+ | </ | ||
+ | Check nfs server with mount command: | ||
+ | * mount:< | ||
+ | mount 10.30.31.8:/ | ||
+ | </ | ||
+ | * umount:< | ||
+ | umount 10.30.31.8:/ | ||
+ | </ | ||
====== snmpd ====== | ====== snmpd ====== | ||
/ | / | ||
snmpwalk -v2c -c public 10.30.43.10 | snmpwalk -v2c -c public 10.30.43.10 |
linux/services.1481788406.txt.gz · Last modified: 2022/10/29 16:15 (external edit)