Personal Skills Summary 8--linux use of BASIC commands

Source: Internet
Author: User

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

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.