CentOS Installation Maven,git,mysql

Source: Internet
Author: User

Installing MAVEN
1: Download maven package:
Http://mirror.bit.edu.cn/apache/maven/maven-3/3.5.0/binaries/apache-maven-3.5.0-bin.tar.gz

2, unzip the installation:
Tar vxf apache-maven-3.5.0-bin.tar.gz-c/opt/

MV Apache-maven-3.5.0-bin apache-maven-3.5.0

3, adding environment variables
maven_home=/opt/apache-maven-3.5.0
Export Maven_home
Export Path=${path}:${maven_home}/bin

And then:
Source/etc/profile

Verify:
Mvn-v

=============================================================
Installing the GIT client
Quick Install yum install git

Https://git-scm.com/download/linux
Https://git-scm.com/book/zh/v1/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git

$ yum Install curl-devel Expat-devel gettext-devel \
Openssl-devel Zlib-devel

$ TAR-ZXF git-1.7.2.2.tar.gz
$ CD git-1.7.2.2
$ make prefix=/usr/local All
$ sudo make prefix=/usr/local install


=============================================================
Installing Jenkins

The official website is divided into two kinds of installation: one is the Direct War package installation is very simple;

The second type is installation package installation;

War Pack installation default installation path:/root/.jenkins

The second type of installation will be described in more detail in other articles.

=============================================================
Install MySQL
1. Download the MySQL repo source

$ wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

2. Install the MYSQL-COMMUNITY-RELEASE-EL7-5.NOARCH.RPM package

$ sudo rpm-ivh mysql-community-release-el7-5.noarch.rpm

After installing this package, you will get two MySQL yum repo Source:/etc/yum.repos.d/mysql-community.repo,/etc/yum.repos.d/mysql-community-source.repo.

3. Install MySQL

$ sudo yum install Mysql-server

Follow the prompts to install, but there is no password after installation, you need to reset the password

4. Reset MySQL Password

$ mysql-u Root

This error may be reported at login: Error 2002 (HY000): Can ' t connect to local MySQL server through socket '/var/lib/mysql/mysql.sock ' (2) because/var /lib/mysql access rights issues. The following command changes the owner of the/var/lib/mysql to the current user:

$ sudo chown-r root:root/var/lib/mysql

Restart MySQL Service

$ Service Mysqld Restart

Next login to reset Password:

$ mysql-u root//Direct enter into MySQL console
mysql > Use MySQL;
MySQL > Update user set Password=password (' 123456 ') where user= ' root ';
MySQL > exit;


Import and export operations:
mysqldump-uroot-p123456 databse.table > Xxx.file
mysqlimport-uroot-p123456 Test Xddd.file

MySQL Source xxx.sql import file

CentOS Installation Maven,git,mysql

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.