"Linux" installs MySQL, JDK, Jboss on CentOS

Source: Internet
Author: User
Tags chmod jboss

        front we've been windows deployment project on the server, jboss When span lang= "ZH-CN" > starts, the system memory goes straight up to 95% ,ear packet too large , remote invocation is a problem that needs to be solved starting from server modified compatibility better linux system half afternoon + The main process is organized as follows convenient for friends to install at once linux server

Mysql


Online installation is no challenge , But the simplest, most immediate and quickest to achieve is not exactly what we need. ?

Open Terminal (Ubuntu shortcut key ctrl+alt+t is not applicable here , can be customized . ) but I didn't find it . Run a terminal, I got a message from a friend who knows. ~).


Start input Command , Total 3 Step .

1. wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm

          ( The wget in the linux system is a tool for downloading files, used on the command line world,wide,web get We often download some software or restore backups from a remote server to the local server wget support HTTP,HTTPS and FTP protocols, you can use HTTP proxy The so-called automatic download means that wget can execute the in the background after the user exits the system. You can log in to the system, start a wget download task, and then exit the system, wget will be executed in the background until the task is completed, not as often as the browser downloads a thing still have to look at it )

and here's one of my favorites. MySQL of the , very convenient . http://mirrors.sohu.com/mysql/

2. RPM-IVH mysql-community-release-el7-5.noarch.rpm

( the rpm command acts as an add / Remove program inside Windows , but it's more powerful .) , It is Red Hat Package Manager the abbreviation , is widely used in Linux Install and remove software under the )

3 Yum Install Mysql-community-server

( Yum command is all called Yellow dog updater,modified) is a shell front-end package manager in Fedora and Redhat as well as SuSE . based on RPM package management, the ability to automatically download RPM packages from specified servers and install them, automatically handle dependency relationships, and install all dependent software packages at once, Yum provides commands to find, install, and delete one, a group, or even all packages .


4. Service mysqld Restart

( restart mysql service )

5.mysql-uroot

( Enter the MySQL database , This time there is no password , You can set it again . ) Enter the database input command after setting the password : Mysql-u root-p, Prompt for password and enter password .)

See a welcome interface similar to the following indicates that the MySQL database installation was successful :




Jdk


if the system comes with JDK, we can unload it first . . and install what we need. JDK.

1.rpm-qa |grep JDK

( See the installed JDK on your system , Assuming the installed version is Java-1.6.0-openjdk-1.6.0.0-1.7.b09.el5, execute the following command )

2.rpm-e--nodeps Java-1.6.0-openjdk-1.6.0.0-1.7.b09.el5

( After the uninstallation is complete , Enter the first command to view and Make sure that it has been uninstalled . ) If it doesn't exist, JDK you don't have to uninstall. . Direct Installation can .)

3.chmod +x jdk-8u45-linux-x64.rpm

( I've downloaded 1.8 's jdk from the official website and put it under usr , This command is to add execute permissions to the resource , If there is no such step , The next step will prompt you for insufficient permissions )

4.RPM-IVH jdk-8u45-linux-x64.rpm

( This command installs the JDK under /usr/java )

5.mv/usr/java/java1.8.0_45/usr/java/jdk1.8

(MV is renamed, This is not necessary , personal habits .)

6.vi/etc/profile

(vi Open file , Open after default is command mode , enter a or i Can enter the editing mode , the following prompt insert ... At the end of the file, configure the following variables , edit Finish Press ESC to exit edit , and then enter : Wq or : x Save exit )



7.java-version

The following version appears , it means everything . OK.



Jboss


This platform is not divided , but Linux than Windows the JBoss more compatible .

1.unzip Jboss-eap-6.2.zip

in the original Windows on the server Copy come here. JBoss Compression Pack , put in usr/local under . the command is the decompression .

2.MV jboss-eap-6.2 jboss6.2

MV is to rename , Rename the file jboss-eap-6.2 to jboss6.2, this is not necessary. , I'm just used to it. .   

3. start the JBoss service .

you can go through Cd/usr/local/jboss6.2/bin Enter JBoss of the bin Catalogue , then enter the command ./run.sh

contains a . and a /, don't put the order wrong. . it asks if you want to start a single-instance server or a multi-instance server , Select the appropriate command that you want to provide as needed .

I run it here./standalone.shstarts JBoss in a single server instance mode( the other is./domain.sh )

You may experience insufficient permissions during the run of a command , You can use the following command : chmod 777*, that means for all the files / folder Add Read / Write / Execute Permissions .

JBoss Enter URL in browser after configuration is complete localhost:8080 See the following interface to indicate that the boot was successful .




4../add-user.sh

Add JBoss User . There are two kinds of management type and application type . follow the steps below to get the line .



finished finishing , Summarize , work efficiency still must be improved . How to improve , to practice is the right path. . writing code is on the one hand , the wrong side of the adjustment , Configuring and deploying various servers is also a basic skill. ! I think , What businesses need is a place where everything can be done. !


"Linux" installs MySQL, JDK, Jboss on CentOS

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.