Redis Learning (1)--environment configuration, installation Jdk,mysql,tomcat

Source: Internet
Author: User
Tags mkdir mysql client parent directory

Install Jdk,mysql,tomcat installation on Linux

RPM Command:

Equivalent to Windows Install/uninstall program. The program can be installed, updated, uninstalled, and viewed.

    • Local program installation: RPM-IVH program name
    • Local program View: RPM-QA
    • Local program Uninstall: RPM-E--nodeps program Name
Yum command:

Equivalent to the RPM command that can be networked

Equivalent to the first networking download program installation package, program update package

The RPM command is automatically executed.

For example, here are some commands for a networked installation environment:

Execute the following command to install the required program for the environment:

Install the program:

Installing JDK on Linux

See if there are any Java-related programs in the installer.

Use to view the commands according to the program: "Rpm-qa" and Pipelines "| Grep-i search string "two commands.

Command: RPM-QA | Grep-i Java

Installation steps:

1, uninstall OPENJDK.

Review the following JDK program, then uninstall it in turn.

Instance:

2. Create the JDK installation directory

The user installer is in the users directory

Mkdir-p/user/local/java (-P is a cascade creation, if Local/java does not exist, these directories are created)

3, Unzip tar.gz

Unzip the installation package to the/usr/local/java directory (-c specifies the extract directory)

4, configuring environment variables

Profile of the environment traversal in the ETC directory

Editing an environment variable configuration file

Reload Environment variables (otherwise environment variables will not take effect)

Source/etc/profile

Install MySQL

Drag-and-drop the MySQL client and server installation packages to Linux, respectively.

The uploaded file will be placed in the root directory

Installing the MySQL server

RPM-IVH mysql-server-5.5.49-1.linux2.6.i386.rpm

Installing the MySQL Client

RPM-IVH mysql-client-5.5.49-1.linux2.6.i386.rpm

Start MySQL

Service MySQL Start

Set User name password:

Set Password to user root 123456

Log in to MySQL:

Mysql-u root-p

Enter Password:

Set up start MySQL

Join the system service

Chkconfig-add MySQL

Auto Start

Chkconfig MySQL on

Turn on MySQL remote service

1, execute the following command, give all permissions (including remote login permissions)

Set up a Linux firewall

The 1,linux firewall intercepts port 3306 by default, so execute the following statement to open the port.

2, re-refresh the firewall:

You can now log in to MySQL via SQLyog on Windows.

Install Tomcat above Linux

Upload the Tomcat installation package to Linux first

1, Cascade Create installation directory:

Mkdir-p/user/local/tomcat

2, the installation package is extracted to the above directory.

TAR-ZXVF apache-tomcat-7.0.57.tar.gz-c/user/local/tomcat

3, enter the bin directory below the Tomcat installation package

Cd/user/local/tomcat/apache-tomcat-7.0.57/bin

4, execute the STARTUP.SH launcher under the bin directory

./startup.sh (note must be added./, distinguished from: /,.. /indicates the parent directory,./indicates the current directory)

Set up a firewall: Turn on port 8080

To shut down the server:

./shutdown.sh

Redis Learning (1)--environment configuration, installation Jdk,mysql,tomcat

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.