- View network configuration information ifconfig
- View system Resource information (like win system Explorer) Top (ps:load average load Task process Cpus/mem Swap swap partition similar to win system virtual memory)
- View Memory usage Free-m #-m represents the default KB in megabytes
- View System Processes Ps-ef
- View firewall status/etc/init.d/iptables status or CD/ETC/INIT.D;. /iptables status
- Temporarily open firewall/etc/init.d/iptables start or service iptables start
- Temporarily shut down the firewall/etc/init.d/iptables stop or service iptables stop
- Permanently turn on the firewall chkconfig iptables on
- Permanently shut down the firewall chkconfig iptables off
- Restart Firewall settings Service iptables restart
- Firewall Custom Port formatting:
A input-m state–state new-m tcp-p tcp–dport 80-j ACCEPT (allow 80 ports through the firewall)
Vi/etc/init.d/iptables
Increase the port in the format above
/etc/init.d/iptables Restart can
- No ps-ef off when viewing tomcat | grep Tomcat
- When you turn on Tomcat, view the boot information tail-f. /logs/catalina.out
- Terminating tomcat Command kill-9 Tomcat_pid
- Restart Network Service restart
- View network status netstat (available to all users)
-a query All-t query TCP (3 handshake, Secure) Information-u query UDP (only responsible for transmitting data, fast) information-L listening Port-R View Route (Gateway)-N IP Address port number
NETSTAT-TUNL querying TCP and UDP network information that is listening
Netstat-an Query all listening network information and connected network information
Linux_ System administration commands (frequently used in work)