First, RPM introductionRPM (Redhat Package Manager) Red Hat Pack ManagerWhy install with RPM: CentOS can use the Yum tool for free, but Yum is not available by default when you pay for Redhat. So it's going to be installed in RPM.RPM Package Structure:1.BASH-4.3.1.TAR.XZ: Package Name-Major version number-minor version number-issue number2.BASH-4.3.2-5.EL6.X86_64.RPM: Package Name-major version number. minor version number. The release number of the source program release number-RPM package. Hos
examples Example 1 : Lists the contents of the current directorycommand:lsls The file and directory under the current directory are listed without any arguments after the command[Email protected] ~]# lsanaconda-ks.cfg cplogs.sh Documents install.log Music public tmpautouserdel.sh Desktop Downloads install.log.syslog Pictures Templates videos[[email protected] ~]# Example 2 : Lists all files in the current directorycommand:ls-a[Email protected] ~]# ls-a. Bash_history cplogs.sh Downloads. Gnot
The content originates from the people's post and Telecommunications press "Linux command Application big dictionary"tell 729 commands, 1935 examplesLearn about the Linux system's reference books, desk book, encountered the command or command not understand the options can be foundStrive to publish content every day airfish2000 "blog, More commands to view blogs: http://airfish2000.blog.51cto.com/10829608/1884124Nisdomainname commanduse the Nisdomainname command to display or set t
': Service httpdstop[Note: When you see the command you want, press the left or right button to edit it before executing this command]# service httpd Start3. Four different ways to quickly execute previous commandsSometimes for some reason you need to execute the previous command, the following four methods can be used to repeat the last executed command:1. Use up arrow to view the previous command and press ENTER to execute.2. On the command line, enter!! and press ENTER.3. Enter!-1 in the com
, press the left or right button to edit it before executing this command]# service httpd Start3. Four different ways to quickly execute previous commandsSometimes for some reason you need to execute the previous command, the following four methods can be used to repeat the last executed command:1. Use up arrow to view the previous command and press ENTER to execute.2. On the command line, enter!! and press ENTER.3. Enter!-1 in the command line and press ENTER.4. Press Ctrl+p to display the prev
Delete entire row2DD Delete 2 rowsd=d$ Delete cursor to entire line end Moving text, using the "delete and Post text" method in VI, moves the text as if it were cut and paste.Y Yank copy a piece of text and use it elsewhere, YP can be used with any move command, such as Yw,y$,4yyRepeat a command:To undo a command:nbsp;More ways to insert text:I insert text at the beginning of a lineo Open a new line at the next line where the cursor is locatedO open
?
[Email protected]:~$ cat/etc/issue
Ubuntu 11.10 \ \l
[Email protected]:~$
2. View the kernel version of the command 2.1 command uname-aUname from Utsname, is a system call, formatted asint uret = uname ((struct utsname) * uname_buf),Among them, the structure pointer uname_buf mainly holds the operating system name, kernel version and hardware architecture;struct struct utsname is defined as follows:[Plain]View Plaincopyprint?
struct Utsname {
Char sysname[]; /*
A lot of tutorials tend to put descriptor into a very complex, long-text, voluminous, results many people look at the foggy.In fact, in a word, the operation of the class hook, in order to control the behavior.Most of the time it is used to intercept access to instance properties.As long as there are __get__ (), __set__ (), and __delete__ () One of the methods in the class. Then it is a descriptor. We think about the operation of a class, can not escape the three methods, we need to control what
1997, the FSF released GLIBC 2.0, which has better support for POSIX standards and better code portability. As a result, all major Linux distributions are now using GLIBC.The last so-name of Linux libc is libc.so.5. So later the GLIBC 2.x used the so-name is libc.so.6.Web Information Service (Network Information Service, NIS)NIS, also known as YP (Yellow Pages), is a client/server system based on RPC (Remote Procedure call Protocol) that allows a set
") Configuring Environment Variables: 1) vi/etc/ The profile is added at the end:Export scala_home=/users/yp-tc-m-2755/documents/software/scala-2.12.4export path= $PATH: $SCALA _home/binSave exit. 2) Enter the command to make it effective: Source/etc/profile 3) test (restart terminal if not in effect): $ scala-versionScala Code Runner version 2.12.4-Copyright 2002-2017, LAMP/EPFL and Lightbend, Inc.2. Install the Scala pluginIntelliJ idea, Preferences
".
vi) → will select
va) → will select
v2i) → will select map (+) ("foo")
v2a) → will select
Block operation, typical operation: 0
^→ to wardrobe
i--[esc]→i is insert, insert ' --' and press ESC to take effect for each row.
under Windows Vim, you need to use
Auto Tip:
In Insert mode, you can enter the beginning of a word
sample test case, the value of the output arrangement is (100-(-50)) + ((-50)-0) + (0-50) + (50-(-100 )) = 200. No other arrangement have a larger value, and among all arrangements with the value of $, the output arrangement is the L exicographically smallest one.
Sequence x1, x2, ..., XP is lexicographically smaller than Sequence y1, y2, ..., yp if there exists an integer R (0≤r
Given n (2
The code is as follows:
/*********************************
1. Create an account
First create an account:
Useraddxxx #xxx为用户名
passwd xxx
Then CD to the NIS environment directory, perform make, synchronize other node accounts
Cd/var/yp
Make
This is the account that is available for all compute nodes
Implement SSH without password login (if required):
Switch to XXX account:
Su xxx
ssh-keygen-t RSA #回车三次
Ssh-copy-id localhost #回车输入密码即可
Complete
2. If the management node freezes
Need to log in to BMC IP to
to the person#cd/usr/local/mysql#chown-R MySQL.#chgrp-R MySQL.#chown-R Mysql/data/mysql7 Configuration parameters# bin/mysqld--initialize--user=mysql--basedir=/usr/local/mysql--datadir=/data/mysqlNote the temporary password generated here, as shown at the end of the:yli>7ecpe; Yp#bin/mysql_ssl_rsa_setup--datadir=/data/mysql8 Modifying the System configuration file#cd/usr/local/mysql/support-files# CP Mysql.server/etc/init.d/mysql# Vi/etc/init.d/mysql
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.