Configuring a local Yum source with a system-mirrored file
1, using WinSCP.exe and other tools upload system image files Rhel-server-7.0-x86_64-dvd.iso to/usr/local/src directory
2. Connect to Rhel server remotely using Putty.exe
Basic knowledgeA virtual machine snapshot can be viewed as a view of a virtual machine at a given time (including his operating system and all programs).
As a result, one can revert to a previous complete state, or make a backup while the guest is
When the server is over 50, viewing the monitor picture has become a headache, and its own Zabbix graphs may not be particularly humane.So, we need a strong display of the page, Graphtrees may be.
Graphtrees needs Zabbix version 3.0.1-3.0.3
If there are any problems with the website or the server, you will first think about whether the file on the server has been modified, and search will use the Find command as follows:
Finds files in the current directory. php file that have been
Recently work to take some projects, are Linux under the Apache environment, originally wanted to run directly nginx, helpless, have used a lot of rewrite,apache and nginx in rewrite some grammar is not the same, do not want to change these rules,
To modify the idea of root: Add a new user, and then set the user as root, so that we can login ssh to use the new user, this user only we know, this increased the difficulty of guessing, so the security of the VPS host further improved.
First, add
Sort is a very common command in Linux, pipe sort, focus, five minutes for sort, now start!
1 How the Sort works
Sort compares each row of the file as a unit, comparing it to each other, from the first character backwards, sequentially by the
Directly with Yum installation, command: Yum install SendMail, installed, began to start, command:/etc/init.d/sendmail start, show startup complete, then start test email, $rs =mail (' dalong0309@163.com ', ' This is the theme ', 'This is the
Curve the way to save the nation, using the temperature of the switch to determine whether the air-conditioning power.
1, expect interactive login switch reading temperature value
The code is as follows
Copy Code
The interview will be Beimian to the problem is: give the Web server access log, please write a script to statistics access to the top 10 IP? What are the top 10 requests for access? When you get to know the goaccess, you'll understand that the only
Another disadvantage of "Postfix", which is widely used in mail services, is much less, or it is designed to address the shortcomings of sendmail. Corresponding to the shortcomings of SendMail, it is also relatively mature in all aspects. Therefore,
Such as:
Unzip the file in the current directory:
The code is as follows
Copy Code
Tar zxvf my_name.tgz or tar zxvf MY_NAME.tar.gz
Example: View the contents of the Usr.tar backup file and display it as a
1. No ping
/etc/rc.d/rc.localEcho 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all
2. Permissions control of user and password fileschmod 600/etc/passwdchmod 600/etc/shadowchmod 600/etc/groupchmod 600/etc/gshadow3. Add non-change attributes to the
You've learned to use the Touch command to create a file, and to use the mkdir command to create a directory Tigger.
Now, you need to learn how to delete files and directories. Using the RM command to delete files and directories is a
The method of using MySQL root to extract power
The MySQL 5.x introduces a system function that executes commands that can be executed by using this function when MySQL is logged in as root, which is, of course, within the purview of the permission.
Linux generates random password methods:
Strings/dev/urandom | Grep-o ' [[: Alnum:]] ' | Head-n 30 | Tr-d ' n '; Echo
Linux Modify Password Method:
passwd Root
Then enter the new password two times
Root can be replaced by the user who needs to
Run the testparm (test parameter) command to test the Samba configuration file. If the test result is correct, the Samba resident service can load the setting value correctly, however, it is not guaranteed that subsequent operations are as normal as
For details about the svn client command svn in linux, you can use-help to view the specific usage. The most common commands are checkout (co), commit (ci), update (up), and list (ls). These commands are very important, in the future, shell or other
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