no unified approach.
--
In RHEL and Fedora Linux, the boot script itself is/etc/init. d/iptables. Therefore, you can manually disable the script:
/Etc/init. d/iptables stop
You can use chkconfig to disable this service item if it is enabled each time.
Chkconfig iptables off
--If SLES is used, modify the/etc/sysconfig/network/config configuration, which can be found in:
# With this variableyou can determine if the SuSEfirewall when enabled
# Shocould
ipchains Function
First, check whether the ipchains service is set to auto start:
Chkconfig -- list ipchains
The output is generally:
Ipchains 0: off 1: off 2: on 3: on 4: on 5: on 6: off
If the column 345 is on, the ipchains service has been set to auto start.
If not, run the following command:
Chkconfig -- add ipchains
Set ipchains to auto start
Next, check whether the ipchains configuration file/etc/sysconfig/ipchains exists. If this file does not
http://sunxiaqw.blog.163.com/blog/static/99065438201111715813443/Let's take named as an example:#!/bin/bash## named this shell script takes care of starting and stopping # Comment: Give the script a role# named (BIND DNS Server).# # chkconfig:-45 # comment : gives named start /off level , such as /etc/rc3.d/s55named. /init.d/named /etc/rc6.d/k45named. /init.d/namedchkconfig:345 85 15 (This is interesting, 345 means that the setting is on in that level, if one does not want to be
=/var/tmp/nginx/scgi--with-pcre--with-file-aiomakemakeinstall
Provide service scripts for nginx
#!/bin/sh##nginx-thisscriptstartsandstopsthenginxdaemon##chkconfig:-8515#description:NginxisanHTTP(S)server,HTTP(S)reverse#proxyandIMAP/POP3proxyserver#processname:nginx#config:/etc/nginx/nginx.conf#config:/etc/sysconfig/nginx#pidfile:/var/run/nginx.pid#Sourcefunctionlibrary../etc/rc.d/init.d/functions#Sourcenetworkingconfiguration../etc/
file/etc/sysconfig/ipchains exists. If this file does not exist, ipchainsIt does not take effect even if it is set to automatic start. The default ipchains configuration file is as follows:
# Firewall configuration written by lokkit# Manual customization of this file is not recommended.# Note: IFUP-post will punch the current nameservers through# Firewall; such entries will ** not * be listed here.: Input accept: Forward acceptUtput accept-A input-s
Distro and disable clearing rules?
Each release version provides its own firewall script to automatically bring in the setting rules at startup, so there is no unified approach.
--
In RHEL and Fedora Linux, the boot script itself is/etc/init. d/iptables. Therefore, you can manually disable the script:[Copy to clipboard] [-]
CODE:/Etc/init. d/iptables stop
You can use chkconfig to disable this service item if it is enabled each time.[Copy to clipboard] [-]
CODE:Chkconfig iptables off
--If SLES i
using common centos commands
DF-H
Fdisk-l
You can also view partitions.
Du-SH
The occupied space is displayed.
DU/etc-SH
The directory size is displayed.
8. Use common centos commands to view installed software packages
View the software packages installed during system installation
Cat-N/root/install. Log
More/root/install. log | WC-l
Check the software packages that have been installed.
Rpm-Qa
Rpm-Qa | WC-l
Yum List Installed | WC-l
But it is strange that the number of installation packages I
the cpu is 32-bit or 64-bit
View CPU bits (32 or 64)
# Getconf LONG_BIT
# Echo $ HOSTTYPE
# Uname-
Iv. view the current linux version
# More/etc/RedHat-release
# Cat/etc/redhat-release
V. view the kernel version
# Uname-r
# Uname-
6. view the current time
Date
7. View hard disks and partitions
Df-h
Fdisk-l
You can also view partitions.
Du-sh
The occupied space is displayed.
Du/etc-sh
The directory size is displayed.
8. View installed software packages
View the software packages installed du
CentOS command for viewing various service informationView the server CPU Model
Grep "model name"/proc/cpuinfo | cut-f2-d:View server memory capacity
Grep MemTotal/proc/meminfo
Grep MemTotal/proc/meminfo | cut-f2-d:
Free-m | grep "Mem" | awk '{print $2 }'Check whether the server's CPU is 32-bit or 64-bit
Getconf LONG_BITView the current Linux version
More/etc/redhat-release cat/etc/redhat-releaseView Linux kernel version
Uname-r
Uname-View Current server time
DateView server hard disks and parti
following command:Chkconfig -- add ipchainsSet ipchains to auto startNext, check whether the ipchains configuration file/etc/sysconfig/ipchains exists. If this file does not exist, ipchainsIt does not take effect even if it is set to automatic start. The default ipchains configuration file is as follows:# Firewall configuration written by lokkit# Manual customization of this file is not recommended.# Note: IFUP-post will punch the current nameservers
NIC Binding technology has been out for a long time, in different platforms under the name of different, in Linux called BONDING,IBM called etherchanel,broadcom called Team, but the name of how to change, the effect is to two or more network card as a network card use, Increase the bandwidth at the same time can also improve redundancy, seven modes, generally used more is to improve redundancy, respectively, and different switches connected to improve reliability, but sometimes the server bandwi
installation packages I've queried through RPM, and Yum, is not the same. No reason was found.Nine: View the keyboard layoutCat/etc/sysconfig/keyboardCat/etc/sysconfig/keyboard | grep KEYTABLE | Cut-f2-d=Ten: View selinux statusSestatusSestatus | Cut-f2-d:Cat/etc/sysconfig/selinux11: View Ip,mac AddressIn the Ifcfg-eth0 file you can see Mac, Gateway and other in
There are several commands: 1, service iptables staus 2, service iptables start 3, service iptables Restart there is a configuration file/ect/sysconfig/iptables execute the first command When found no response, to the/ect/sysconfig/directory is not iptables this file, should be iptables not installed, then through the Yum command to install1 Yum install-t iptablesReference Information Link: http://www.cnblo
One: Use the route command to add use the route command to add the route, the machine restarts or the network card restarts after the route is invalidated, method: //added to the host Route #route add–host192.168.1.11deveth0#routeadd–host 192.168.1.12gw192.168.1.1//routes added to the network #routeadd–net192.168.1.11 netmask255.255.255.0eth0#routeadd–net192.168.1.11 netmask255.255.255.0gw192.168.1.1#routeadd–net 192.168.1.0/24eth1//Add a default gateway #routeadddefaultgw192.168.2.1/ /Remove R
When all the machines are configured with the IP, it is easier to set up with Setup and then edit the configuration file for configuration.A, the Eth0 configuration IP address of a network card:Vi/etc/sysconfig/network-scripts/ifcfg-eth0:Device=eth0Onboot=yesBootproto=staticipaddr=192.168.1.20gateway=192.168.1.1netmask=255.255.255.0-------------------------------------------------------------------------------------------B, a network card eth0 configu
The NIC configuration file for RedHat 9.0 can be located in the following three locations.
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/networking/devices/ifcfg-eth0
/etc/sysconfig/networking/profiles/default/ifcfg-eth0
Only the configuration files located in/etc/sysconfig/network-scripts/are present by d
Remove Eth0.bak and redundant network adapters from Linux systems
Deleting redundant ifcfg-eth0.bak in a VM
CentOS a Eth0.bak configuration backup file appears after the system changes the NIC or Nic MAC address
Workaround:
/etc/sysconfig/networking/devices directory, delete Ifcfg-eth0.bak
/etc/sysconfig/networking/profiles/default, remove Ifcfg-eth0.bak
/etc/sysco
packagesView the software packages installed during system installationCat-n/root/install. logMore/root/install. log | wc-l8. view the keyboard layout using common CentOS commandsCat/etc/sysconfig/keyboardCat/etc/sysconfig/keyboard | grep KEYTABLE | cut-f2-d =9. Use common CentOS commands to view selinux InformationSestatusSestatus | cut-f2-d:Cat/etc/sysconfig/s
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.