Common LINUX commands-general Linux technology-Linux technology and application information. For details, refer to the following section. Fc restart network
/Sbin/service network stop/start
Set IP address under FC
/Sbin/ifconfig eth0 10.0.2.230 netmask fixed bandwidth limit 192 broadcast 10.0.2.255
Modify DNS in fc7
Vi/etc/resolv. conf
Nameserver 202.106.0.20
Ssh raohongfu@10.0.1.33
[NFS] usage
Simple use of NFS in fc7
/Sbin // service nfs start
Vi/etc/exports
1/home/wwwroot-rw 10.0.2.230
2
3/home/rhf/10.0.2.230 (ro)
/Sbin // service nfs restart
/Usr/sbin/showmount-e 10.0.2.230
Mount-t nfs 10.0.2.230:/home/rhf/home/session/
Client sh script
Rsync-vzrtopg -- progress -- delete -- password-file =/home/raohongfu/rsync. user backuser@10.0.2.230: www/home/raohongfu/aa/
Vi/home/raohongfu/rsync. user
Hongfu (password only)
Chmod 400 rsync. user (very important)
When the firewall is enabled, make the following settings to enable the relevant ports,
Modify the/etc/sysconfig/iptables file and add the following content:
-A RH-Firewall-1-INPUT-m state -- state NEW-m tcp-p tcp -- dport 80-j ACCEPT
-A RH-Firewall-1-INPUT-m state -- state NEW-m tcp-p tcp -- dport 22-j ACCEPT
Add a firewall rule to open port 80. Otherwise, only local access is allowed. Other computers cannot open the webpage.
/Sbin/service iptables stop or/et/init. d/iptables stop
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service