How to install the software:
Source Installation (Nginx,redis, etc.)
RPM (Redhat Package Manager) Pack installation (MySQL, etc.)
Yum installation (requires networking)
Binary type Software installation (this type of software, first downloaded from the official website to local, and then extracted to use, such as Jdk,tomcat)
JDK Installation:
#1, specify two directories mkdir-p/export/serversmkdir-p/export/software#2, upload jdk install package to linuxsz command # unzip TAR-ZXVF Jdk-8u141-linux-x64.tar.gz-c/export/servers/which java [[email protected] jdk1.8.0_141]# which java/usr/bin/ja Va[[email protected] jdk1.8.0_141]# #3, uninstall your own jdk#3.1, find your own JDK rpm-qa |grep java [[email protected] jdk1.8.0_ 141]# Rpm-qa |grep javajava-1.6.0-openjdk-1.6.0.41-1.13.13.1.el6_8.x86_ 64tzdata-java-2016j-1.el6.noarchjava-1.7.0-openjdk-1.7.0.131-2.6.9.0.el6_8.x86_64[[email protected] jdk1.8.0_141]# #3.2, uninstall command: Rpm-e--nodeps java-1.6.0-openjdk-1.6.0.41-1.13.13.1.el6_8.x86_64 Tzdata-java-2016j-1.el6.noarch java-1.7.0-openjdk-1.7.0.131-2.6.9.0.el6_8.x86_64#3.3, install the new JDK 1.8 configuration environment variable vi/etc/ Profile #JAVA_HOME setexport java_home=/export/servers/jdk1.8.0_141export path= $PATH: $JAVA _home/bin#3.4 Let environment variables take effect Source/etc/profile #3.5 Verify that the configuration is correct [[email protected] jdk1.8.0_141]# Java-versionjava Version "1.8.0_141" Java (TM) SE Runtime Environment (build 1.8.0_141-b15) Java HotspoT (TM) 64-bit Server VM (build 25.141-b15, Mixed mode) [[email protected] jdk1.8.0_141]# distributing files (distributing JDK files to other machines) way one SCP- R jdk1.8.0_141/[email protected]:/export/servers/mode two scp-r jdk1.8.0_141/[email protected]: $PWD "CD/ export/servers/"
Tomcat Installation:
1, Upload (window upload to Linux) 2, decompression tar-zxvf apache-tomcat-7.0.57.tar.gz-c/EXPORT/SERVERS/3, start tomcat into the directory: cd/export/servers/ APACHE-TOMCAT-7.0.57/BIN./STARTUP.SH4, verify that start [[email protected] bin]# netstat-nltpactive Internet connections ( Only servers) Proto recv-q send-q Local address Foreign address State Pid/program name TC P 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1352/rpcbind TCP 0 0::: 111:::* LISTEN 1352/rpcbind TCP 0 0::: 80 LISTEN:::* 2876/java TCP 0 0::: 22 :::* LISTEN [[email protected] bin]# 5, JPS View Tomcat's service process name and Pid[[email&nbs P;protected] bin]# jps2902 Jps2876 bootstrap[[email protected] bin]# 6, access via URL in Windows Explorer http://node-01 : 8080/7, Close (stop) tomcat./shutdown.sh
Nginx Installation:
Installation dependent Environment:
Yum install gcc-c++ yum install-y pcre pcre-devel yum install-y zlib zlib-devel yum install-y OpenSSL opens Sl-devel
Installation:
Mkdir-p/var/temp/nginx./configure--prefix=/usr/local/nginx--pid-path=/var/run/nginx/nginx.pid--lock-path=/var/ Lock/nginx.lock--error-log-path=/var/log/nginx/error.log--http-log-path=/var/log/nginx/access.log--with-http_ Gzip_static_module--http-client-body-temp-path=/var/temp/nginx/client--http-proxy-temp-path=/var/temp/nginx/ Proxy--http-fastcgi-temp-path=/var/temp/nginx/fastcgi--http-uwsgi-temp-path=/var/temp/nginx/uwsgi-- Http-scgi-temp-path=/var/temp/nginx/scgi# then executes: Make make install #开启cd/usr/local/nginxcd sbin (nginx)./nginx# Checksum netstat-nltp[[email protected] sbin]# netstat-nltpactive Internet connections (only servers) Proto recv-q send-q Local address Foreign Address State Pid/program name TCP 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1352/rpcbind TCP 0 0 0.0.0.0:80 0 .0.0.0:* LISTEN 5979/nginx TCP 0 0 0.0.0.0:35187 0.0.0.0:* LISTEN 1374/rpc.statd TCP 0 0 0.0.0.0:22 0.0.0.0:* LISTEN Browser to access http://node-01:80# Stop command kill-9 5979
Installation of MySQL:
1, upload, unzip 2, check whether the installation of Mysqlrpm-qa |grep mysql3, uninstall the MySQL software rpm-e--nodeps mysql-libs-5.1.71-1.el6.x86_644, install rpm -IVH *.RPM5, start MySQL service MySQL start6, view MySQL initialization comes with password Cat/root/.mysql_secret 7, Mysql-uroot-ppasword:8, Change Password Mysql>set PASSWORD = PASSWORD (' 123456 '); 9, set the system to start automatically mysqlchkconfig--add mysqlchkconfig MySQL on10, Check whether the list has been added, mainly for verifying chkconfig11, authorization (note Do not forget this step, otherwise sqlyog not connected) grant all privileges on * * to ' root ' @ '% ' identified by ' 123456 ‘; Flush privileges;
SVN installation:
1, through the Yum command to install the Yum install Subversion 2, create the SVN repository directory mkdir- p /opt/svnfile3, modify the configuration file a, vim svnserve.confanon-access = readauth-access = writepassword-db = Passwdauthz-db = authz# Account B, vim passwd Zhangsan = 123456lis i = 123456wangwu = 123456zhaoliu = 123456zhaosi = 123456c, vim authz[aliases]# joe =/c=xz/st=dessert/l=snake City/o=snake Oil, ltd./ou=research institute/cn=joe average[groups]# harry_and_sally = harry,sally# Harry_sally_and_joe = Harry, Sally,&joe&joe = r# * =# [repository:/baz/fuz]# @harry_and_sally = rw# * = r[ /] @admin = Rwzhaosi = r* =
Linux Software Installation (JDK,TOMCAT,NGINX,MYSQL,SVN)