On the previous blog we introduced some of the basic features of bash, which we usually operate most frequently. In this blog we introduce the variables of bash, laying the groundwork for scripting shell scripts later.1. What is a variableA variable
0. Prefaceas a just learning Linux Small white, embark on this road is also extremely accidental reason, for computer knowledge only stay in play game and Point mouse stage of me, want to share with you my study process, and learning content, hope
This machine is ubuntu16.0.4lts:1. Create folder: mkdir name2. Create file: Touch a.txt3, use gedit edit A.tx:gedt a.txtPress Ctrl+s to save or point in the upper right corner of Save4. Use Vim to edit A.txt:vi A.txt, press I to enter the INSERT,
In my work, often encounter servers and other servers, switch docking, currently there are several scenarios, the relevant configuration and attention points summarized, so that later to view the reference.
One NIC interface with multiple IP
First, PS view processPS gives us a one-time view of the process, it provides a view of the results is not dynamic and continuous, if you want to monitor the process, you should use the top toolThere are 5 states of processes on Linux:1. Running
Build Environment Centos7 andFirst upload the tar package to/usr/local/mypackage/elasticsearch via the toolUnzip the TAR packageAfter decompression, go to config directory, edit configuration fileVI elasticsearch.ymlLocate the following code snippet
One, pipe and operation controlPipe break: The result of the preceding output is given to the following commandExample: Find/*.txt | WC-L displays the number of files in the current file that end with the. txt.Job ControlCTRL + Z pauses the
This time the software engineering practice, I am responsible for our group backstage service construction, I chose the bandwagon server, installs the Debian Gnu/linux, the backend service is uses the Python flask frame.Log on to the remote server
Reproduced from here, thanks to the original author
sed ‘s/test/mytest/g‘ example.txt
Indicates that the test text in Example.txt is replaced with mytest
Please note that this command sed ‘s/test/mytest/‘ example.txt
If you do
Cat: Display text fileYou can use the Cat command to display the contents of a text file, or you can append the contents of several files to another file. If no file is specified, or if the file is "-", it is read from the standard input.Command
Environment: Virtual machine type Redhat Enterprise 6(1) Does the virtual machine have an FTP server installed?If not installed, Yum installs VSFTPD and starts the FTP service(2) is the virtual machine firewall turned off?Service iptables stop shuts
Originally from: Https://help.aliyun.com/document_detail/27527.html?spm=5176.doc60431.6.553.Y31eEjPre-conditionsBefore you mount the NFS protocol, you need to make sure that the Nfs-utils or Nfs-common are installed in the system as follows:
Solve the error prompt when running Linux commands
Have you ever received the "Permission denied" error message when running Linux commands? This may be because you are trying to perform an operation that requires the root permission. For example,
Download the RPM package and all its dependent packages from CentOS
You must spend some time and manually searching for and downloading the software packages that the installed software depends on. However, we do not have. In this short tutorial, I
Basic CentOS command: sarCommon sar command formats
Sar [options] [-A] [-o file] t [n]
Where:
T indicates the sampling interval, and n indicates the number of samples. The default value is 1;
-O file: stores the command results in binary format.
Path of the package downloaded during yum installation in CentOS[Root @ Rhel5 packages] # cat/etc/yum. conf | grep cachedirCachedir =/var/cache/yumThis is the place to save,[Root @ Rhel5 packages] # llTotal 100-Rw-r -- 1 root 94864 Nov 13 hwbrowser-0
Rsync service,Chapter 1 Rsync introduces 1st rsync Definition
Rsync is an open-source, fast, and versatile tool that supports full and incremental local or remote data synchronization and backup. Rsync is applicable to unix, linux, windows, and
Apache anti-leech configuration in CentOS
First, open the following configuration in the httpd. conf file. The configuration is commented out by default.
LoadModule rewrite_module modules/mod_rewrite.so
Below is the domain name
ServerName http://
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