Once again today to build a Linux production environment. This is a lot of steps, very cumbersome and have to do things. Although done many times, but there are many steps, orders do not remember, every time everywhere to find the information is very troublesome, so a few steps to write down, in order to find.
Log in to remote MySQL
Mysql-h 192.168.1.100-u Root-p
Assigning permissions to a MySQL non-root account
Select,insert,update,delete permissions for all tables in the TestDB database for the user who user1 the account with a password of 123456:
Grant Select,insert,update,delete on testdb.* to [e-mail protected] '% ' identified by ' 123456 ';
Refresh permissions:
Flush privileges;
View maximum connections under MySQL
Show variables like ' max_connections ';
To modify the maximum number of connections
Vi/etc/my.cnf
Found max_connections=100 (if not added), instead:
max_connections=1500
Password-free login to Linux server
Password-free login to Linux server with your own computer (you are a Windows system)
On Windows
Execute with the cmd command:
SSH-KEYGEN-T RSA
Double-tap 3 to enter, you can see in the folder under the C-drive user directory .ssh ,
Id_rsa is the private key, and Id_rsa.pub is the public key.
On Linux
Perform
SSH-KEYGEN-T RSA
Double-tap 3 to enter, and then cd .ssh/ you can see that
Id_rsa id_rsa.pub
Create a public key to hold the free login host generation.authorized_keys
Touch Authorized_keys
Change his authority to 600.
chmod ~/.ssh/authorized_keys
Finally, the id_rsa.pub public key of the Windows computer is written to Authorized_keys and saved.
File Rename
Download the JDK file name in this manner and jdk-8u65-linux-x64.rpm\?AuthParam\=1445848743_f162eddc392f630f3b14bcded3bc3f19 change it to jdk-8u65-linux-x64.rpm . The command is as follows:
MV Jdk-8u65-linux-x64.rpm\? Authparam\=1445848743_f162eddc392f630f3b14bcded3bc3f19 jdk-8u65-linux-x64.rpm
Installing the JDK
Download JDK
wget http://download.oracle.com/otn-pub/java/jdk/8u65-b17/jdk-8u65-linux-x64.rpm? Auth param=1445848743_f162eddc392f630f3b14bcded3bc3f19
Download good rename to: jdk-8u65-linux-x64.rpm, give 777 permission
' Chmod 777 jdk-8u65-linux-x64.rpm '
Installation
RPM-IVH jdk-8u65-linux-x64.rpm
View
Java-version
Configuring Environment variables
Modify the System environment variable file
VI +/etc/profile
Append the following content to the file:
Java_home=/usr/java/jdk1.8.0_65jre_home=/usr/java/jdk1.8.0_65path= $PATH: $JAVA _home/bin: $JRE _home/binclasspath= .: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar: $JRE _home/libexport java_home jre_home PATH CLASSPATH
Make the modification effective immediately:
CentOS Direct Yum Install Nginx
Processing Source:
RPM-IVH http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
To view the Nginx information for Yum:
Yum Info nginx
Installation:
Yum Install Nginx
Start Nignx:
Service Nginx Start
Enter the host address to view:
Http://192.168.1.100/
See
Welcome to nginx! If you see this page, the Nginx Web server is successfully installed and working. Further configuration is required. For-online documentation and support refer to Nginx.org.Commercial-available at Nginx.com.Thank Using Nginx.
Description succeeded.
* Take note of these and follow up the update. (Some Linux versions may not be fully applicable)
Linux Basics Command Notes