Configure vnc in Linux to implement remote desktop in linux
VNC (Virtual Network Computing) is short for Virtual Network computers. VNC is an excellent remote control tool software developed by the famous AT&T European research laboratory. VNC is a
GoAccess is an open-source Real-Time website log analysis tool. GoAccess is easy to understand, that is, to read and parse the access log file of Apache/Nginx/Lighttpd, and then display the statistics in a more friendly way. Statistics include:
1. Environment check
Php installation depends on apache and mysql. Therefore, to install php, you must first check the installation of apache and mysql.
Run the following command to check the version:
/Apache/bin/apachectl-v
/Mysql-uroot-p'-e
Added support for rarfiles from the centos system.[Root @ localhost ~] # Wget http://www.rarsoft.com/rar/rarlinux-4.0.1.tar.gz[Root @ localhost ~] # Tar-zxvf rarlinux-4.0.1.tar.gzRar/Rar/readme.txtRar/default.
Function Description: sorts text files.Syntax: sort [-bcdfimMnr] [-o ] [-t ] [+ -] [-- help] [-- verison] [file]Note: sort can sort the content of text files by unit of action.Parameters:-B ignores the leading space characters in each line.-C: Check
Tr is used to convert characters from standard input through replacement or deletion. Tr is mainly used to delete control characters in a file or convert characters.Note: tr can only replace, contract, and delete characters, but cannot replace
There are two machines a and B. Now you need to add user1 of machine a to the user2 user trust list of machine B, so that user user1 of machine a can directly ssh to user user2 of machine B.
Steps:
1. Enter machine a/home/user1 /. run mkdir-p/home/
Add environment variables to centOS
Directly edit the/etc/environment file and modify the PATH environment variable.
PATH =.:/bin:/usr/bin:/sbin:/usr/sbin: usr/local/bin
This method takes effect only after the system is restarted.
If the
1. Network Connection Mode:
Select NAT
2. Edit the DNS configuration file/etc/resolv. conf of the VM.
Set nameserver to the NAT gateway address in the VM.
[Root@andes.com/etc] # cat resolv. conf # No nameservers found; try putting DNS
Chmod chown chgrp=- =-= -- =# Chmod# Permission XXX0 indicates no permission,1 indicates the executable permission. = x indicates the executable permission. Generally, the executable permission is readable.2 indicates the write permission. = w
The default file descriptor of the Centos server is 1024 (linux). The command ulimit-n is run.
For high-load and high-connection servers, 1024 is far from enough. As for the modification method, I will not repeat it here. A large number of articles
For some reason, we need to redirect the httpd service accessing 10.0.3.49 to 10.0.3.26. So we studied how to use the NAT of iptables to redirect IP addresses and ports. In fact, it is very simple. We only need two steps.
1. Make sure that the data
1. echo "aa"> test.txt and echo "bb"> test.txt //> clear the original file and write the content to the file.> put the content at the end of the file.
2. chmod go + w-R/home/zhangy // Add write permissions to group users and other users
3, tar-tzvf
Run the ps command to view the process memory.The ps command is a common program in Linux to view the process status. It has several fields to view the process memory usage: sz, rss, and vsz. They are described as follows:Sz: the number of physical
Number of times the web server cannot be notified of ip addresses
# Cat access_log | awk '{print $1}' | sort | uniq-c | sort-n
Or
# Cat access_log | awk '{print $1}' | sort-n | awk '{S [$ NF] ++} END {for (a in S) {print a "\ t" S [a]} '| sort +
Method 1: log on to the system as the root user/usr/local/mysql/bin/mysqladmin-u root-p password. New password: enter password. Old passwordMethod 2: log on to the mysql database as the root user and update mysql. user set password = password ("new
First, use the ps-ef command to determine the PID of the process to be killed, and then enter the following command:# Kill-pidNote: Standard kill commands can achieve the goal. Terminate the problematic process and release the process resources to
This time, we updated some common CentOS commands for disk operations. I hope it will be helpful for you to use CentOS. This article is very useful from the perspective of actual work. Here, we mainly use common CentOS commands for disks.
Common
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