Command format:head [options] File (option is not writable)
Command function:Displays the contents of the number of lines before the beginning of the file
Common functions:- g hidden file name- v Displays the file name simultaneously- n
Command format:Cat [Options] File
Command function:Display the entire file at once, create a new file from the keyboard, combine several files into one file
Common options:- b numbering of output non-empty lines- e displays the $ symbol at the
1. Output the unit that failed to run:Systemctl--failed2. All the unit files are stored in both the/usr/lib/systemd/system/and/etc/systemd/system/directories, but the latter are of higher priority. Systemctl List-unit-files can list all the units.3.
Rights Management:R: ReadW: WriteX: ExecuteThree types of users:U: Users themselves (User/owner)G: Genus (Group)O: Other person (other)Chown: Change file owner (administrator can use)Chown USERNAME file, ...-R: Modify directory and internal file
ls: View files and directoriesCD: Switch directoriesPWD: Show current directorymkdir: Creating a DirectoryRmkdir: Delete an empty directoryRM-RF: Delete the directory and delete all files in the directoryEcho: Display, printMV source file path after
In general, you need to specify the path of the compilation tool when configuring the cross-compilation tool chain, and you need to set the environment variables. For example, my MIPS-LINUX-GCC compiler is in the "/opt/au1200_rm/build_tools/bin
Typically, ITERM2 accesses remote Linux using SSH, as is the case with Termial, as follows:SSH @Then enter the access password. Of course, there are times when you need to specify access ports.Ssh-p @If the operation under ITerm2 is the same as the
Set up LNMP and centos6.5lnmp in CentOS6.5
1: view the environment:?
12
[root@10-4-14-168 html]# cat /etc/redhat-release CentOS release 6.5 (Final)
2. Disable the firewall.?
1
[root@10-4-14-168 html]# chkconfig
Install Gnome GUI on CentOS7
I changed my computer today and started to install CentOS 7 on the Virtual Machine vmware in the evening. I'm so excited.
All devices have been set. When you choose to install the system version, something goes away,
Centos6.5 install python27 + easy_install27 + pip27yumgroupinstall"DevelopmentTools"yuminstall-yopenssl-develzlib-devsqlite-develbzip2-develIf openssl-devel is installed, the following error occurs:Protectedmultilibversions:libselinux-2.0.94-5.3.el6_
Add static routes to Centos7
1. ip route display and set Routing
1. display the route table
[root@centos7 ~]# ip route showdefault via 192.168.150.254 dev enp0s3 proto static metric 1024192.168.150.0/24 dev enp0s3 proto kernel scope link src 192
CentOS SSH password-less logon PrinciplePrinciples
For ease of understanding, it is assumed that the hadoop148 host can be connected to hadoop107 without a password.
Generate a key pair on hadoop148, including a public key and a private key, and
Use the nmcli command to manage the network in CentOS 7
Network management is actually the management of NetworkManager. You can use the nmcli command to control the network. The following describes how RedHat/CentOS 7 uses the nmcli command to
DNS address failure after CentOS6 restarts the network service
In the previous CentOS release (4, 5), you only need to set the DNS address in/etc/resolv. add "nameserver 1.1.1.1" in the conf file, although CentOS6 is in resolv. adding this line in
Nginx. conf Optimization
The problem is that the nginx. conf file is too long, too large, and inconvenient to maintain. Therefore, you can split the file so that it is easy to read and maintain.
1. Remove all weixin configurations in nginxAs shown
Nginx Load Balancing (Master/Slave) + Keepalived
Advantages of Nginx Load balancer:
Implement a flexible operating architecture. When the pressure increases, you can temporarily add backend Web servers;
Upstream is capable of Load Balancing
LINUX server for CISCO log eventsBuild a LINUX server that records CISCO log events. 2. cisco switch address: 10.0.0.71 Linux address: 192.168.80.633. the test procedure is mainly divided into two major parts. 1) the switch first sets the switch to
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