Reference: http://www.cnblogs.com/liqingdong/p/7346100.html
1, service iptables status--View server firewall status
2, Vi/etc/sysconfig/iptables--Edit firewall rules
3, service iptables restart (start,stop)--Restart (start, stop) server firewall
4, Vi/etc/profile--Configure the Java environment variable on Linux, add at the end of the file
Java_home=/usr/local/java/jdk1.7.0_80
Path= $PATH: $JAVA _home/bin
Classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
Export Java_home PATH CLASSPATH
5, Ps-ef | grep java View process, "|" Pipe character, grep filter
6, Vi/etc/sysconfig/network-scripts/ifcfg-eth0--Modify the Linux server IP configuration information
Device=eth0--Device name
Hwaddr=00:0c:29:f0:88:33--mac Address
Type=ethernet--Network type
uuid=9ccc5fd3-808d-4bd8-9583-056e685d3300
Onboot=yes--Boot start
ipaddr=172.16.21.201--IP Address
netmask=255.255.254.0--Subnet mask
gateway=172.16.24.1--Default gateway
dns1=172.16.21.10--DNS server address (multiple can be added)
dns2=10.1.1.10
7. Service network Restart--Restart Network Service
8, Vi/etc/sysconfig/network vi/etc/hosts--Modify the host name
Personal Skills Summary 8--linux use of BASIC commands