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