Mainly introduce the VI editor and three modesDivided into command mode edit mode tail line modevi Editor for editing files with the suffix. shEnter VI xx.sh into command modeThen enter ": (Half-width)" into the tail-line mode in the new
Development environment CENTOS7, jdk1.8First go to the official website to download jdk1.8 linux64-bit installation packageGo to catalogue/usr/local/mypackage/javaUploading a JDK installation package with WINSCPCommand TAR-ZXVF
Common commands for Linux systemsCommon commands for Linux systems:1,cd/home/finebi/into the specified directory (cd/home/into the virtual root directory, CD finebi/into the actual directory)2,CD. Go back to the top level directory3,LL View the file
The role of ACL policies-Limitations of document attribution-Anyone belongs to three roles: owner, group, other person.-Unable to achieve finer controlACL Access Policy-Ability to set independent permissions on individual users, individual
Transfer from HTTP://WWW.DANIUBIJI.CN/ARCHIVES/25Note: Write again to strengthen memoryLs-l Listing File Detailsmkdir Creating a DirectoryCD Switch DirectoryTouch creates an empty fileEcho wearing a file with contentCat View File ContentsCP CopyMV
Types of variables for LinuxAccording to the lifetime of the variables, the Linux variables can be divided into two categories:1 Permanent: The configuration file needs to be modified, and the variable will take effect permanently.2 Temporary: With
grep regular Expression meta-character set:^ The start of the anchor line, such as: ' ^grep ' matches all lines that begin with grep.The end of the anchor line is as follows: ' grep$ ' matches all rows ending with grep.. Match a non-newline
01:ip address configuration =Setup graphical interface ConfigurationVi/etc/sysconfig/network-scripts/ifcfg-eth0Service Network restart02: Test If you can get on the public network: Ping www.baidu.com03: Go in the yum command directory: = =
1. See if Python is already installedCentOS 7.2 installs python2.7.5 by default because some commands use it, like Yum, which uses python2.7.5.Use the PYTHON-V command to see if Python is installedThen use the command which Python to see the
View Nginx version in centos
How to view the Nginx version information, linux is indeed a bit confusing for users who are used to windows, but after getting used to it, you will surely fall in love with it. If you don't talk much about it, simply
Https for centosHttps for centos
Implement HTTPSThere are two common access methods for accessing the Internet: http and https. http is an unencrypted Internet transmission protocol, which is easy to intercept and steal information during data
Linux commands recorded by new users
1, pwd: locate the current folder
2. cd: Convert to file
3. mv: Move a file
4 cp; copy files
5 vim: create a file
6 vim. Create a hidden file
7 cd .. back to the upper-level directory
8. Create a
Use of the crontab command for CentOS scheduled tasksIntroduction
Crond is a daemon in linux that is used to periodically execute a task or wait for processing some events. It is similar to a scheduled task in windows. After the operating system is
CentOS7 use firewalld to open and close the firewall and Port1. Basic use of firewalld start: systemctl start firewalld view status: systemctl status firewalld stop: systemctl disable firewalld disable: systemctl stop firewalld2.systemctl is the
View logs in linux in real timeCat/var/log /*. if the log is being updated, you can also use watch-d-n 1 cat/var/log/messages-d to highlight different places in real time, -n indicates the number of seconds to refresh. This command does not directly
View centos system information
System
# Uname-a # view kernel/OS/CPU information # head-n 1/etc/issue # view OS version # cat/proc/cpuinfo # view CPU information # hostname # view computer name # lspci-TV # list all PCI devices # lsusb-TV # list all
Centos7 adds root permissions to users
1. useradd sha
Passwd sha User Creation and password
2. 1. Grant sha root permissions to gpasswd-a sha wheel
Ii. vi/etc/sudoers
Allow root to run any commands anywhereRoot ALL = (ALL) ALL # original rowSha
Monitors Linux system nodes and service performance and linux node Performance
1. Obtain information
#! /Bin/bash # Description: # enter the top information into a file # Author: lone boat # version: 1.0 # Creation Time: 03: 04: 28 PATH =/bin: /sbin:
CentOS7 build the lamp environment and centos7 build the lamp EnvironmentInstall Mysql
In CentOS 7, MySQL database software is removed from the default program list and replaced by mariadb. The MariaDB database management system is a branch of 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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service