[Linux] install MySQL, JDK, and Jboss on centOS,

Source: Internet
Author: User

[Linux] install MySQL, JDK, and Jboss on centOS,

We have been deploying the project on the windows server. When JBoss is started, the system memory will rise to 95%. When the system goes online, this situation cannot withstand thousands of accesses at the same time, the ear package is too large and remote calls are all urgent issues. from the server, modify the Linux system with better compatibility. deploy these development environments in half an afternoon and half a night. The main process is as follows to facilitate one-time installation of Linux servers.

 

MySQL


Online installation is not challenging, but is the simplest, most direct, and fastest possible?

Open the terminal (the Ubuntu shortcut Ctrl + Alt + T is not applicable here. It can be customized. But I didn't find Run a terminal. Some friends who know it will leave a message for me ~).


Start to enter the command. There are 5 steps in total.

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

(Wget in Linux is a tool for downloading files. It is used in the command line and is the co-name of World, Wide, Web and get. we often need to download some software or recover the backup from a remote server to a local server. wget supports HTTP, HTTPS, and FTP. You can use HTTP proxy. the so-called automatic download means that wget can be executed in the background after the user exits the system. you can log on to the system, start a wget download task, and exit the system. wget will be executed in the background until the task is completed. Unlike the common browser, you have to keep watching it .)

Here is a favorite MySQL, very convenient. http://mirrors.sohu.com/mysql/

 

2. rpm-ivh mysql-community-release-el7-5.noarch.rpm

(The rpm command is equivalent to adding/deleting programs in windows, but it is more powerful. It is short for Red Hat Package Manager and is widely used for installing and deleting software in Linux)

 

3 yum install mysql-community-server

(Yum commands are called Yellow dog Updater and Modified) is a Shell front-end Package Manager in Fedora, RedHat, and SUSE. based on the RPM package management, You can automatically download and install the RPM package from the specified server, and automatically handle dependencies, and install all dependent software packages at a time, yum provides commands to find, install, and delete one or more software packages.


4. service mysqld restart

(Restart MySQL Service)

 

5. mysql-uroot

(When you enter the MySQL database, there is no password at this time. You can set it again. after the password is set, enter the database and enter the command mysql-u root-p, prompting you to enter the password and then enter the password .)

The following welcome page is displayed, indicating that the MySQL database is successfully installed:




JDK


If the system comes with jdk, We can uninstall it first, and then install the jdk we need.

1. rpm-qa | grep jdk

(View the jdk installed in the system. If the installed version is a java-1.6.0-openjdk-1.6.0.0-1.7.b09.el5, run the following command)

 

2. rpm-e -- nodepsjava-1.6.0-openjdk-1.6.0.0-1.7.b09.el5

(After the uninstallation is complete, enter the first command to check whether it has been uninstalled. If there is no jdk, you do not need to uninstall it. Install it directly .)

 

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

(I have uploaded jdk 1.8 from the official website and put it under usr. This command adds the execution permission to the resource. If this step is not performed, the system will prompt that the permission is insufficient)

 

4. rps-ivh jdk-8u45-linux-x64.rpm

(This command installs jdk under/usr/java)

 

5. mv/usr/java/java1.8.0 _ 45/usr/java/jdk1.8

(Mv is renamed, and this is not necessary. I am used to it .)

 

6. vi/etc/profile

(Vi. After opening the file, the command mode is used by default. Enter a or I to enter the editing mode. The following prompt is insert... At the end of the file, configure the following variables. After editing, Press ESC to exit the editing. Then, enter wq or: x to save and exit)



7. java-version

If the following version is displayed, everything is OK.



Jboss


This is not a platform, but Linux is more compatible with JBoss than windows.

1. unzip jboss-eap-6.2.zip

Copy the JBoss package on the original windows Server and put it under usr/local. This command is for decompression.

 

2. Music jboss-eap-6.2 jboss6.2

Mv is rename, rename the file jboss-eap-6.2 to jboss6.2, this is not necessary, but I get used to it.

 

3. Start the JBoss service.

You can first enter the bin directory of JBoss through cd/usr/local/jboss6.2/bin, and then enter the command./run. sh

Contains one. And one/. Do not enter the command incorrectly. It will ask you whether to start a single-instance server or multiple-instance server. Select the corresponding command as needed.

Run./standalone. sh here to start JBoss IN a singleserver instance mode (the other is./domain. sh)

When running the command, you may encounter a prompt with insufficient permissions. You can run the following command: chmod 777 *, which means to add read, write, and execute permissions to all files/folders.

 

After JBoss configuration is complete, enter the URL localhost: 8080 in the browser. The following page is displayed, indicating that the startup is successful.




4 ../add-user.sh

Add a JBoss user. There are two types of users: management and application. follow the steps below.



After finishing the sorting, we can conclude that the work efficiency must be improved. how to Improve, practical cultivation is the right way. code writing is one aspect. debugging is one aspect. configuring and deploying various servers is also a basic skill! I think what enterprises need is the ability to do everything they can!


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.