First on the virtual machine to add a hard disk, that is, "Edit Virtual machine settings" in the inside add a hard disk, are generally SCSI devices.Specify the hard drive capacity and reboot into the system.Root User action:Fdisk-l will see a new
Multi-threaded programming in Linux and passing multiple parameter instances is the content of this article, not to say, first look at the content. This morning I experimented with multithreaded programming under Linux and passed multiple parameters
1 Pre-Tex pack installationApt-get Install Tetex-bin tetex-base Tetex-extra Cjk-latexAnd then http://learn.tsinghua.edu.cn/homepag.../programs.html.Download the gbkfonts executable file, as long as the gbkfonts static link file is available, then
Now, we know how to create or change the attributes of a directory or file, but you know what the default property is when you create a new file or directory. Then it has to do with umask. So, what is Umask? Basically, umask is specifying "the
The title of the article is a bit around the mouth, like the execution of a command pipe, oh, because the server Setup problem can not upload too large compression package, this compression package can not continue to pass the breakpoint, all can
Now using the Ls-l command to view a list of files in the details format, you will see the following:Total 5Drwxr-x---4 user group 4096 00:37 filenameDrwxr-xr-x user group 4096 Mar 10 20:16 filename-RW-------1 User group 524 00:40 A-rw-r--r--1 user
How to use the Iptables NAT feature to use the Red Hat Enterprise Linux as a router.
Method:
Tip: The following methods only apply to the Red Hat Enterprise version of Linux more than 3.
1, turn on the package forwarding function:
Gnome-open/etc
Ubuntu in Nautilus/etc
The command is to open a window with root permission to manage the file. For example, if you click on a computer directly, there are many folders and files that are root users to operate,
So you can not
The difference between 1.malloc and new
2. Explain the bit field
3.C Language address alignment is what's going on
4. Write a function similar to printf, you can accept any number of parameters
5. When using the MEMCP function, what should be noted
6
Statement to view file permissions:
In the terminal input:
Ls-l xxx.xxx (xxx.xxx is file name)
Then there will be similar messages, mostly these:
-rw-rw-r--
A total of 10 digits
Which: the front one-represents the type
The middle one of the three rw-
Linux
text file view, display command1, Cat Display file Content command.
Command format:
#cat [[options]]
Common options:-B, calculates all non-null output lines, and begins with a line number of 1. -N to calculate all output lines (including
Sort : sorts the contents of a text file.
sort-u [File] = sort [File] | Uniq (Go Heavy)
parameter Description
-B ignores whitespace characters that start in front of each line
-c Check whether the files have been sorted in order
-D sort, ignores
Directory1, about search;2, search the file name to find files;2.1 Find;2.2 Locate2.3 Whereis and which2.3.1 where2.3.2 which3, in a file or output to find;4, about this article;5, reference documents;6, related documents;++++++++++++++++++++++++++++
System
# uname-a # View kernel/operating system/CPU information
# head-n 1/etc/issue # View operating system version
# cat/proc/cpuinfo # View CPU Information
# hostname # View computer name
# LSPCI-TV # list all PCI devices
# LSUSB-TV # list all
1. Prepare 3 virtual machines and close their firewalls
The system can be CentOS or red Hat
This example uses CENTOS7
2. Download Zookeeper
wget http://mirrors.hust.edu.cn/apache/zookeeper/zookeeper-3.4.8/zookeeper-3.4.8.tar.gz
3. Decompression
TAR-
Use LVM to establish a logical volume as/dev/mapper/test-test.
Due to an abnormal shutdown, a logical volume error was made and cannot be mounted.
So check the logical volume and prompt:
# fsck.ext3-f/dev/mapper/test-testE2fsck 1.38
Ulimit commandFunction Description: Controls the resources of the shell program.
Syntax: ulimit [-ahs][-c ][-d ][-f ][-m ][-n ][-p ][-s ][-t ][-u ][-V
Supplemental Note: Ulimit is a shell-built directive that can be used to control the resources of
Yum is what yum = Yellow Dog Updater, Modified main feature is more convenient to add/remove/update RPM packages. It can automatically solve the problem of dependency of packages. It facilitates the management of a large number of system update
A Linux Network Programming--Introduction of network knowledge
Linux Network Programming--Introduction of network knowledgeClient and service sideOne of the biggest differences between web programs and ordinary programs is that the Web program is
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