-a ACCEPT input-s state --state new-p UDP--dport 662-j ACCEPT After the configuration is complete, restart the Iptables service with the following command line:
# Service Iptables RestartExecute the following command to add the NFS service to boot:
# service Rpcbind Start# Service NFS Start# Chkconfig Rpcbind on# Chkconfig NFS OnOnce the NFS service is started, we do not have to mount the 2 directories
Tags: Linux simple command
1. View the System CPU and Memory the information.
[[email protected] ~]# Cat/proc/cpuinfo ( view CPU)processor:0Vendor_id:genuineintelCPU Family:6model:142Model Name:intel (R) Core (TM) i5-7200u CPU @ 2.50GHzStepping:9CPU mhz:2712.000Cache size:3072kbFpu:yesFpu_exception:yesCPUID level:22Wp:yesFlags:fpuvme de PSE TSC MSR PAE cx8 APIC Sep MTRR PGE MCA cmov Pat PSE36 clflush dtsmmx fxsr SSE SSE2 SS Sysca ll N
View command top for system health[[Email protected]~] #top [options]Options:-D seconds specifies that the top command is updated every few seconds. Default is 3 secondsCommands that can be executed in the interactive mode of the top command? or h to view HelpP sort by CPU usage, default sortM Sort by Memory utilizationN Sort by PIDQ Exit TopTop
FDISK command Linux disk partition management Purpose: To observe the physical use of hard disk and split the hard disk.How to use:First, enter Fdisk-l/DEV/SDA on the console to observe the physical use of the hard disk.Second, enter the FDISK/DEV/SDA on the console, can enter the partition hard disk mode.1. Enter m to display all the commands listed below.2. Enter p to display the hard disk segmentation s
Previously used Ubuntu, the installation of uninstall software is basically using apt-get this very simple, and the process of software dependencies will automatically help us deal with, similar to the fool-like installation. In addition, in the Linux operating system, almost all software can be installed through RPM, uninstall and management operations. The RPM
After a long time learning about linux disk management, the fdformat command is also very important. Here I have collected some information and shared it with you. After reading this article, you will certainly have a lot of GAINS, I hope this article will teach you more things.
Linux disk management command-fdformat
After a long period of development, the system administrator wants to know the functions of the df command in the linux disk management command. Many users also know about most of the linux disk management commands, here I will share my understanding and discuss with you the du com
/System_Administrators_Guide/ch-Services_and_Daemons.htmlComparison table, taking apache/httpd as an example
Task
Old instructions
New directives
Enable a service to start automatically
Chkconfig--level 3 httpd on
systemctl enable httpd.service
Make a service not start automatically
Chkconfig--level 3 httpd off
systemctldisablehttpd.service
Check Service status
Service httpd Status
systemctlstatushttp
Linux User Management, USER command creation, and linux User Management
Create USER commands
Useradd [specify user uid] [specify user group] [user name]
The uid and the group can be created successfully without writing, but the system automatically creates a group with the same name.
When creating a user, you can also specify the home directory and whethe
Command name: chmodCommand English Original: Change the permissions mode of a fileCommand path:/bin/chmodSyntax: chmod "{ugoa}{+-=}{rwx}" "File or directory""mode = 777" "File or directory"-R Recursive modificationFunction Description: Change the permissions of a file or directoryThe number represented by the permissionR 4W 2X 1rwxrw-r-7 6 4Examplechmod g+w TstfileGrant Write permission to tstfile fileChmod-r 7777 TestfileModify directory Testfile and
the AT–C task IDAbove, only the most core information is displayed, you can see our command is LL.The time format of the AT command can beMinute??? At now + 5 minutes?? The task runs after 5 minutesHour????? At now + 1 hour????? The task runs after 1 hoursDays????? At now + 3 days????? The task runs after 3 daysWeeks???? At now + 2 weeks???? The task runs after two weeksFixed???? At midnight????????? Task
3 Source Package Management3.1 the difference between the source package and the RPM package(1) Difference: ① difference before installation: conceptual difference; ② after installation: different installation locations(2) default installation location for RPM packages
RPM Package Default
specified directory, starting at the root directory, and adding the directory name /, the subdirectory in the current directory can write the name directly; relative path: The path starting at the current position Example 3 : CD- : Returns the directory where it was before entering this directory[Email protected] httpd]# cd/usr/share/yum-[Email protected] httpd]# cd/usr/share/yum-plugins/[Email protected] yum-plugins]# CD-/var/log/httpd[Email protected] httpd]# CD-/usr/share/yum-plugins[Email p
output the following with the Ls-l command:
Although the file is also cut in bytes, but the-C parameter will try to maintain the integrity of each line, that is, a row has 13 bytes, then it will be cut into two files, a 10 byte, a 3 byte, and the-B parameter will accumulate 8 bytes to the next line to fill 10 bytes and then cut, so-b parameter only 7 files, The-c parameter has 10 files.
Copyright NOTICE: This article for Bo Master original
specified directory, starting from the root directory name plus/, the current directory of subdirectories directly write the name; relative path: The path starting at the current positionExample 3 : CD- : Returns the directory where it was before entering this directory[Email protected] httpd]# cd/usr/share/yum-[Email protected] httpd]# cd/usr/share/yum-plugins/[Email protected] yum-plugins]# CD-/var/log/httpd[Email protected] httpd]# CD-/usr/share/yum-plugins[Email protected] yum-plugins]#Exam
Linux/unix DD command is a very good management disk command
DD Command function: A block of a specified size copies a file and, at the same time as a copy, a specified conversion, playing the role of an initialization disk
1. Introduction to the Order
Main options for DD:
The place where the number is specified is
full name of the package is still duplicated and that the full name of the package needs to be apr-util-1.3.9-3.e16_0.1 by pressing two times.After the cursor is in the input "x" (Press the TAB key once) Enter to continue the installationNote that the first dependency libapr-1.so.0 is a library file (or module) that needs to be opened Http://www.rpmfind.net search for the first fileFind the full name of the installation package corresponding to the L
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.