XXX is not in the sudoers file. This incident would be reported. Solution1. Switch to the root user,2. Add the Write permission to the sudo file, and the command is:chmod u+w/etc/sudoers3. Edit the Sudoers fileVi/etc/sudoersFind this line root all= (
Forgotten Password resolution (centos6.5 version)1. When booting, press ESC on this page2, then enter the following interface, press the letter "E" key(3) Press the letter "E" key again(4) then enter: space , and then enter: 1, and then press
Modify file suffixIf you change the file application.properties.sample to application.properties, formatThe MV file name. {change prefix, modified target suffix}Navigate to the directory where you modified the file #[[email protected] scripts]#
&When you run a job in the foreground, the terminal is occupied by the job, and you can add & to run the background after the command. Example: SH test.sh &Commands that are suitable for running in the background have f i n D, time-consuming sorting,
1. Install wget commandIf you need to download the MAVEN installation package directly over the network by using the wget command, you need to install the wget command on the Linux system.Yum-y Install wget2. Download MAVEN installation packagewget
Summarize the commonly used tar decompression commands as a memo:Tar-C: Create compressed archives-X: Unzip-T: View content-r: Append files to the end of a compressed archive file-U: Update files in original compressed packageThese five are
System Environment: CentOSLinux has two kinds of time, one is system time, and the other is hardware time.System Time View: #dateSystem Time settings: #date-setTime Synchronization Tool PreparationLinux time synchronization to use a tool: Ntpdate,
1 Extract the tgz file to the specified directory.Tar zxvf test.tgz-c specified directoryFor example: Unzip the test.tgz to the/home directory: Tar zxvf test.tgz-c/home2 compresses the specified directory to the specified file. tgz.For example:
1 Installing the JDKConcrete Look http://www.cnblogs.com/php-linux/p/8757783.html2 Download the latest version of the zipHttps://www.elastic.co/cn/downloads/elasticsearch3 DecompressionUnzip Elasticsearch-6.2.3.zip4 MobileMV
1 Copy all files under the specified directory to another directory.If the Dir2 directory does not exist, it can be used directly:Cp-r Dir1 Dir2If the Dir2 directory exists, you need to use:Cp-r dir1/. Dir2If the same file exists in the Dir2
1.what is a regular expression? A regular expression is a set of rules and methods for processing a large number of string definitions.2. Regular Expressions: op-Dimension in order to find the matching string application expression from a large
Number of files search: Find-type f-print|wc-l;Find a file: find/xxx/xx-name "filename";Number of file lines view:2.1 View files First 5 lines: Head-5/xxx/xx/filename;2.2 Viewing the file after a few lines: Tail-5/xx/xx/filename;2.3 View new
11.1 Lamp Architecture Introduction11.2 MySQL, Mariadb Introduction11.3/11.4/11.5 MySQL InstallationThe./scripts/mysql_install_db--user=mysql--datadir=/data/mysql prompts you to install additional packages, such as:Run
This essay is the Linux Experiment Report two, the main content is Linux commonly used commands.A basic use of vimVIM has 6 basic modes and 5 derivation modes, but there are only three common patterns, as explained below.1. Normal mode: This is
1.yum-y Install vsftpd2. Create a file [[Email protected] ~]# CD/[Email protected]/]# mkdir product[Email protected]/]# CD product3. Create a new user and give them permission [Email protected] product]# useradd
View UserWho am IOrWho mom likeswhocommand other common parameters
Parameters
Description
-a
Print all that you can print
-d
Print the Dead process
-m
Same am i
How do I set up the Linux installation tomcat and let Tomcat boot?Let's simply say:The first step @1:First we find the location of the Tomcat installation, and then we find the CD into the Tomcat bin directory below;We edit the startup.sh file under
Install the Linux system to configure the network (IP address, subnet mask, Gateway, DNS) to connect to the networkOne, turn on the NIC Eth0CentOS display no nic (eth0)2. Set the static IPVim/etc/sysconfig/network-scripts/ifcfg-eth01. The name of
One minute master Linux system grub.conf configuration Core Knowledgeboot loader (Boot loader) is a small program that runs before the computer loads the operating system kernel. With this applet, you can initialize the hardware device, set up a map
One minute master Linux system grub.conf configuration Core Knowledgeboot loader (Boot loader) is a small program that runs before the computer loads the operating system kernel. With this applet, you can initialize the hardware device, set up a
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