Basic Linux commands
Today, we are building a Linux production environment. This is a complex task that has to be done. Although I have done it many times, there are still many steps and commands that I don't remember. Every time I find information everywhere, it is very troublesome. So I wrote down some steps for searching. Log on to the remote MySQL mysql-h 192.168.1.100-u root-p and assign permissions to the non-root account of MySQl to select, insert, update, and, delete permission: grant select, insert, update, delete on testDB. * to user1 @ '%' identified by '000000'; refresh permission: flush privileges; view the maximum number of connections in MySQL show variables like 'max _ connections '; modify the maximum number of connections vi/etc/my. cnf: Find max_connections = 100 (if not, add it), and change to: max_connections = 1500 password-free login to Linux server use your computer password-free login to Linux Service In Windows, run the ssh-keygen-t rsa command and press Enter. in the ssh folder, id_rsa is the private key and id_rsa.pub is the public key. Run ssh-keygen-t rsa on linux, press Enter 3, and then cd. ssh/You Can See That id_rsa id_rsa.pub creates a public key for saving the login-free host. authorized_keys touch authorized_keys changes his permission to 600 chmod 600 ~ /. Ssh/authorized_keys write the id_rsa.pub public key of the windows computer to authorized_keys and save it. File rename the downloaded JDK file name to this look jdk-8u65-linux-x64.rpm \? AuthParam \ = 1445842543_f162eddc392f630f3b14bcded3bc3f19 change it to a jdk-8u65-linux-x64.rpm. The command is as follows: Music jdk-8u65-linux-x64.rpm \? AuthParam \ = 1445842543_f162eddc392f630f3b14bcded3bc3f19 jdk-8u65-linux-x64.rpm install JDK download JDK wget http://download.oracle.com/otn-pub/java/jdk/8u65-b17/jdk-8u65-linux-x64.rpm? Auth Param = 1445842543_f162eddc392f630f3b14bcded3bc3f19 download and rename it jdk-8u65-linux-x64.rpm, install rpm-ivh jdk-8u65-linux-x64.rpm for 777 permission 'chmod 777 jdk-8u65-linux-x64.rpm 'view java-version configure environment variables modify system environment variables 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 _ 65 PATH = $ PATH: $ JAVA_HOME/bin: $ JRE_HOME/binCLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar: $ JRE_HOME/lib Export JAVA_HOME JRE_HOME path classpath make the modification take effect immediately: source/etc/profile 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 view nginx information of yum: yum info nginx installation: yum install nginx start nginx: service nginx start input host address 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 please refer to nginx.org. specified cial support is available at nginx.com. thank you for using nginx. it indicates the operation is successful.