View disk status prior to expansion[email protected] ~]# df-h[email protected] ~]# fdisk-lCreate physical volume (PV)#pvcreate/DEV/SDC---input disk actual pathFormatting a new hard disk[email protected] ~]# MKFS.EXT4/DEV/SDCMKE2FS 1.41.12 (17-may-201
Introduction to Linux Operating system basicsThe birth of Linux is still more dramatic, at the end of the last century, as commercial companies introduced UNIX operating systems and almost monopolistic charges, causing worldwide dissatisfaction,
One, see which ports are open NETSTAT-ANPSecond, turn off the port number: iptables-a input-p TCP--drop port number-j dropIptables-a output-p TCP--dport port number-j DROPThird, start the slogan: iptables-a input-ptcp--dport port number-j ACCEPTFour,
You must first understand the two most basic commands:Tail-n test.log query log at the end of the last 10 lines;Tail-n +10 test.log Query all logs after 10 lines;Head-n test.log Query log file in the first 10 rows of logs;Head-n -10 test.log query
1. go to the log directory (approximate steps below): under the Linux command line, go to the Tomcat installation directory, and then open the logs folder2. because the log file is too large, with the command to intercept 9 months After the log
# total number of cores = number of physical CPUs x number of cores per physical CPU # Total Logical CPUs = number of physical CPUs x number of cores per physical CPU X number of hyper-threads # View the number of physical CPUs cat/proc/cpuinfo|
1. mkdir make Directorys Create directory example: MKDIR/DATA;CD/;mkdir data Create data directory at root/Bottom2. LS list directory file example: LS/Reagan/directory directory and file LS is the directory and file below the current
First, the relevant information to obtainI personally in the study mini2440 Development Board is followed by Vedon teacher's first video learning, video and information can be accessed by the Hundred Questions Network forum access.Q Net Forum Link:
View CPU information (model) # Cat/proc/cpuinfo | grep name | Cut-f2-d: | uniq-c 8 intel (R) Xeon (r) CPU e5410 @ 2.3 3ghz (see there are 8 logical CPUs, also know the CPU model) # Cat/proc/cpuinfo | grep Physical | uniq-c
Disk sector is the smallest physical storage unit, each sector is 512bytes, the first sector is the most important, there is a master boot record (MBR) accounted for 446bytes, partition table accounted for 64bytes, each 16bytes identifies a
Problem: In Windows wrote a shell script in Linux is dead or alive can not run, how can not find the error, the original is a format problem.Cause: The line break of the Windows/dos system is that the/r/n,unix/linux system's newline character is the
Create a LAMP environment with one click in ubuntu16.04, ubuntu16.04lamp
Step 1. Execute the commandApt-get update.
Step 2 run the commandApt-get install lamp-server ^.
Step 3. During the installation process, the Mysql database root user
Virtual Machine + Bridge Mode + Host-only mode to build a perfect Windows Linux development environment, host-onlylinux
I believe many shoes are similar to me as a Linux code farmer (I am still embedded ). for Linux development, a Linux environment
CentOS 7.3 command operation methodModify hostname
# Cat/etc/hostname rhel73 # vim/etc/hostnameOutput the specified time format
How to Use the date command: % t hop grid [TAB key] % H hour (00-23) % I hour (00-12) % M minute (00-59) % S second (00-
Basic troubleshooting methods for a very difficult CentOS System
1. view memory usage1. The free command can be used to view memory usage.
free
2. Start to clean up the memory (root permission required)
sync echo 1 >
Common firewalld commands in CentOSInstall
Firewalld has been installed by default in Centos7. If you need to install it yourself, you can directly use yum to install it.
# Yuminstallfirewalld
To use the graphical Configuration tool, install
Linux basics,In rescue mode, there are 7 OPTIONS 0-6 when centos6 is started; In centos7, check the startup options: ls-l/usr/lib/systemd/system/runlevel * target.
Set the bios for boot and select the optical drive to start;
In centos7, the rescue
Smoothly switch the nginx version and nginx version
Before explaining how to stably and securely upgrade or downgrade nginx that is already running, you must first understand several signals supported by nginx. The following are the signals that can
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