Install the jdkrpm package (JDK-7u17): http://Www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html#jdk-7u17-oth-JPR# Yum Install wget-yjdk:http://download.oracle.com/otn/java/jdk/7u17-b02/jdk-7u17-linux-x64.rpm? AUTHPARAM=1494054963_AB211BDBAA89415192EC41E794DCF52E (may expire, need to log back in after expiration)Installation: # RPM-IVH jdk-7u17-linux-x64.rpm Configuring Java home# vim~/. Bash_profile write: PATH= $PATH: $HOME/Binexport Java_home=/usr/java/jdk1.7. 0_17path= $PATH: $JAVA _home/binexport Path Save:Shift+zz Refresh config file # source~/. Bash_profile view JDK version # Java-version# Javac-versionmariadb Yum Installation: Help documentation: http://www.linuxidc.com/Linux/2016-03/128880.htm: https://downloads.mariadb.org/mariadb/10.1.13/# wgethttp://ftp.hosteurope.de/mirror/archive.mariadb.org//mariadb-10.1.13/bintar-linux-x86_64/mariadb-10.1.13-linux-x86_64.tar.gz# TarZXVF mariadb-10.1. --linux-x86_64.Tar. GZ #MVmariadb-10.1. --linux-x86_64/usr/local/mysql# groupadd mysql add mysql group # useradd-g MySQL MySQL add MySQL user and belong to MySQL group #Chownmysql:mysql-rf/usr/local/MySQL set the MySQL directory user and user group attribution. # chmod+x-rf/usr/local/MySQL Grant executable permission #CP/USR/LOCAL/MYSQL/SUPPORT-FILES/MY-MEDIUM.CNF/ETC/MY.CNF Copy the default MySQL configuration file to/etc Directory # CD/usr/local/MySQL #/usr/local/mysql/scripts/mysql_install_db--user=MySQL Initialize database #CP/usr/local/mysql/support-files/mysql.server/etc/init.d/MySQL copy mysql service program to system directory # chkconfig MySQL on add MySQL to system service and set to boot # service MySQL start Mysql#vim/etc/Profile Editor profile, adding MySQL executable path to the system pathexport path=/usr/local/mysql/bin: $PATH #source/etc/Profile causes path to take effect. #mysqladmin-U root Password'123456'set root account and password #mysql-uroot-p Log in mysql[none with root user]>Use mysql to switch to MySQL database. [MySQL]>SelectUser,host,password from user; --viewing system permissions [MySQL]>drop User"'@'localhost'; --Delete an unsecured account [MySQL]>drop user [email protected]':: 1'; [MySQL]>drop user [email protected]127.0.0.1; [MySQL]>SelectUser,host,password from user; View system permissions to ensure that unsafe accounts are deleted. [MySQL]>flush privileges; --Refresh Permissions1) Modify the character set to utf8#VI/etc/my.cnf Add default under [client]-character-set =UTF8 add character_set_server under [mysqld]=UTF8 modified restart: #service mysql restart2Add error log (when actual operation is incorrect) #VI/etc/My.cnf added under [mysqld]: Log-error =/usr/local/mysql/log/error.loggeneral-log-file=/usr/local/mysql/log/Mysql.log Modified restart: #service mysql restart3is set to case-insensitive , and Linux is case-sensitive by default. #VI/etc/My.cnf added under [mysqld]: Lower_case_table_name=1Restart completed: #service mysql restart4) Add external access rights [MySQL]> Grant all privileges on * * to'Root'@'%'Identified by'112233'; [MySQL]>flush Privileges; Nginx installation: Help documentation: http://www.runoob.com/linux/nginx-install-setup.htmlDownload #wgethttp//nginx.org/download/nginx-1.13.0.tar.gz#wgethttp//downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gzFirst, install the compilation tools and library filesYum-YInstall MakeZlib Zlib-develGCC-c++ Libtool OpenSSL openssl-Devel Second, the first to install Pcrepcre function is to let Nginx support Rewrite function. 1, download the PCRE installation package: http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz#wgethttp://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz2, unzip the installation package: #TarZXVF pcre-8.35.Tar. GZ3, enter the installation package directory # CD Pcre-8.354, compile and install #./configure# Make&& Make Install5, view pcre version # Pcre-config--Version Installation Nginx1, download nginx,:http://nginx.org/download/nginx-1.13.0.tar.gz#wgethttp//nginx.org/download/nginx-1.13.0.tar.gz2, unzip the installation package #TarZXVF nginx-1.6.2.Tar. GZ3, enter the installation package directory # CD Nginx-1.6.24, compile and install #./configure--prefix=/data/nginx-1.13.0--with-http_stub_status_module--with-http_ssl_module--with-pcre=/data/pcre-8.35# Make# Make Install5, view nginx version #/data/nginx-1.13.0/sbin/nginx-V to this, nginx installation is complete. Start the Nginxnginx startup command as follows: #/data/nginx-1.13.0/sbin/nginx#/data/nginx-1.13.0/sbin/nginx-S Reload # reload config file #/data/nginx-1.13.0/sbin/nginx-s Reopen # restart nginx#/data/nginx-1.13.0/sbin/nginx-s Stop # stop nginx check config file ngnix.conf correctness command: #/data/nginx-1.13.0/sbin/nginx-tnginx multiple domain jump settings: Help documentation: HTTPS://zhidao.baidu.com/question/360295158564852412.html# CD/data/nginx-1.13.0/conf#CPnginx.conf nginx.conf_bak# vim nginx.conf#user nobody;worker_processes1; events {Worker_connections1024x768;} HTTP {include mime.types; Default_type Application/octet-stream; Sendfile on; Keepalive_timeout $; #gzipOn ; server {Listen the; server_name localhost; Location/{root HTML; Index index.html index.htm; } error_page - 502 503 504/50x.html; Location= /50x.html {root html; }} server {Listen the; server_name www.aabbcc.com; Location/{proxy_pass http://127.0.0.1:8080/;}} Install tomcat download: #wgethttp://apache.fayea.com/tomcat/tomcat-7/v7.0.77/bin/apache-tomcat-7.0.77.tar.gz# MVapache-tomcat-7.0. the/data/tomcat7-wechat# CD/data/tomcat7-wechat/bin#./startup
Linux JDK Tomcat nginx MariaDB installation, Nginx multi-domain forwarding configuration