Centos7 need to install the software environment

Mysql installation

Download and install

  1. Download and install the MySQL official Yum Repository
wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
  1. Yum installation source
yum -y install mysql57-community-release-el7-10.noarch.rpm
  1. Mysql installation
yum -y install mysql-community-server
  1. Setting a power-Mysql
systemctl enable mysqld.service

5 start Mysql

service mysqld start

Mysql setting

  1. You need to check the default password before accessing Mysql
grep "password" /var/log/mysqld.log
  1. Login Mysql
mysql -u root -p

Then enter just found the password, the password is not visible hide the display.

  1. Modify password policy
> show VARIABLES like "%password%"
+---------------------------------------+---------+
| Variable_name                         | Value   |
|---------------------------------------+---------|
| default_password_lifetime             | 0       |
| disconnect_on_expired_password        | ON      |
| log_builtin_as_identified_by_password | OFF     |
| mysql_native_password_proxy_users     | OFF     |
| old_passwords                         | 0       |
| report_password                       |         |
| sha256_password_proxy_users           | OFF     |
| validate_password_dictionary_file     |         |
| validate_password_length              | 8       |
| validate_password_mixed_case_count    | 1       |
| validate_password_number_count        | 1       |
| validate_password_policy              | MEDIUM  |
| validate_password_special_char_count  | 1       |
+---------------------------------------+---------+

Introduction of several major parameters:

parameter Explanation
validate_password_number_count Parameter is the number of digits contained in at least the password, a password policy take effect when MEDIUM or more.
validate_password_special_char_count Parameter is the number of alphanumeric passwords Africa and other special characters into effect when the password policy is MEDIUM or more time.
validate_password_mixed_case_count Password parameter is the number of English character case, when the password policy is effective upon MEDIUM or more.
validate_password_length Parameter is the length of the password, the parameter generated by the following equation.
# 更改密码长度
set global validate_password_length=0;

# 更改数字个数
set global validate_password_number_count=0;

# 更改大小写字母个数
set global validate_password_mixed_case_count=0;

# 更改特殊字符个数
set global validate_password_special_char_count=0;
  1. change Password
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Your New Pssword';
  1. Open Remote Access
grant all privileges on *.* to 'root'@'You IP or ALL %' identified by 'Your Password' with grant option;
# 刷新权限
flush privileges;
  1. Configure the default character

In my.cnf( /etc/my.cnf) or my.inifile

In the my.cnfinsertion configuration, the following statement

[client]
default-character-set=utf8

Be sure to [mysqld]insert these two before, otherwise it will appear the following error

mysql: [ERROR] unknown variable 'datadir=/var/lib/mysql'

The main reason is that [client]the configuration information in the [mysqld]middle of configuration information, lead to other [mysqld]configurations laid on [client]the next.

In the socketafter insertion of the following two lines

character-set-server=utf8
collation-server=utf8_general_ci
  1. Transaction isolation confluence 安装需要设置(Optional: )

Mysql four kinds of transaction isolation

In my.cnfor my.inifile

transaction_isolation = READ-COMMITTED
The above can be done under Mysql restart the service.
service mysqld restart

Use rpminstallationJDK

download

First through the official website to download the following file icons Note the red

a

transmission

The downloaded files by FileZilla uploaded to the server software

installation

Use rpmcommand to install

rpm -ivh jdk-8u152-linux-x64.rpm

Download and install Nginx

Add yumsource

rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm

Installing yumafter the source, you can use the following command to view

yum repolist

installation

yum install nginx

Configuration Service

Set boot

systemctl enable nginx

Start Service

service nginx start

Installation NodeJS

By yuminstalling nodejs

Update nodejs various versions of yumsource

  • Nodejs v10.x installation command
$ curl --silent --location https://rpm.nodesource.com/setup_10.x | bash -
  • Nodejs v8.x installation command
$ curl --silent --location https://rpm.nodesource.com/setup_8.x | bash -

As indicated above other editions

Direct Installation

yum install nodejs -y

By mounting compressed

Quguan network first needs to download the corresponding installation package

Select All Mirror> Ali cloud images

Find node-v12.10.0-linux-x64.tar.gzthe shape of the file name, the specific version number will change

wget https://npm.taobao.org/mirrors/node/v12.10.0/node-v12.10.0-linux-x64.tar.gz

After downloading unzip to the specified directory

tar xf node-v12.10.0-linux-x64.tar.gz -C /usr/local/

Rename the folder

cd /usr/local/
mv node-v12.10.0-linux-x64/ nodejs

Set global command

ln -s /usr/local/nodejs/bin/node /usr/local/bin

ln -s /usr/local/nodejs/bin/npm /usr/local/bin

Then you can use the pleasant

Jenkins installation

The official installation

Official Links RPM installation

Before the formal installation, you need to install the javaenvironment

Installation Source

sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo

Import key

sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key

installation jenkins

yum install jenkins

Modify the port

vim /etc/sysconfig/jenkins

Found JENKINS_PORT="8080"revised toJENKINS_PORT="你需要的端口"

If you need to build to run in an automated rootshell permissions, you also need to modify the above file

JENKINS_USER="root"

Restart service

systemctl restart jenkins.service

After starting the visit, tips from /var/lib/jenkins/secrets/initialAdminPasswordobtaining passwords

Other operations after logging

When using http access, plug-press equipment will be some failures, so you need to enter the following links

HOST/pluginManager/advanced

Modify the bottom of the upgrade site

http://updates.jenkins.io/update-center.json
清华源:https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/current/update-center.json

Then install the plug-in, administrators can use to add

Docker image installation

Look directly at the official website of the installation , you need a basic working knowledge of Docker.

Git install the new version

Downloading editing tools

yum -y groupinstall "Development Tools"

Download dependencies

yum -y install zlib-devel perl-ExtUtils-MakeMaker asciidoc xmlto openssl-devel

Delete comes with git

When you install dependence, yum automatically install Git, you need to uninstall the old version of Git, the command is:

yum remove git

Download the gitlatest version of the source code

GitHub go directly to the site download release

Github Release version

Of course, in the country's github download release may be slow, so you can go to the official website to download the recommended

Official website to download

git official website click Downloadsto enter the download page

Click to Linux/Unixdownload the Linux version of git

Pulled to the bottom, click on the download a tarball tune in to pressure git archive page, select the version you need to download

Git archive decompression

tar -zxvf git-2.30.0.tar.gz

Enter the git directory, configure the installation path

cd git-2.13.3
./configure --prefix=/usr/local/git

installation

make && make install

Configuring global path

export PATH="/usr/local/git/bin:$PATH"
source /etc/profile

View git version

git --version

Configuration software connection

There are some systems or software may use git default address, so the above configuration may have may not have access to git commands, you need to add flexible connections, added to the place you need

ln -s /usr/local/git/bin/git /usr/bin/git

It is installed in front of their position, followed by flexible connections required to the desired position.

As did to -s, you can see where Linux Ln command

Author: SpiritLing
Disclaimer: All articles in this blog unless otherwise specified, are used BY-NC-SA 4.0 license. Please indicate the source!
Blog Park CSDN GitHub
books: http protocol Learning: Address Custom Address
docker learning: Address Custom Address

Guess you like

Origin www.cnblogs.com/spirit-ling/p/11775405.html