Binary compilation installs MySQL (CENTOS6, 7) and source code compilation bind

Source: Internet
Author: User

One or two binary compilation install MySQL

CENTOS6, 7 are basically the same, but a few steps are also marked out, the steps are as follows:

① Download the installation package and import it into CentOS for decompression. 650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/A7/06/wKioL1nfTFmhD74dAABChTA9P4I985.png "title=" 1.png "alt=" Wkiol1nftfmhd74daabchta9p4i985.png "/>

② Create a soft connection or modify the mariadb-10.2.8-linux-x86_64 directory.

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/A7/06/wKioL1nfSsCAld_oAAAYj5uKUDw904.png "title=" 1.png "alt=" Wkiol1nfsscald_oaaayj5ukudw904.png "/>

CENTOS6: Modify the soft connection MySQL folder inside the genus group to MySQL

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/A7/4D/wKioL1nkr1SABYy1AACOBt1xSFI625.png "title=" 1.png "alt=" Wkiol1nkr1sabyy1aacobt1xsfi625.png "/>

③ Create the system user MySQL as well as the database files.

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/A7/06/wKioL1nfTd_zf9vqAAAlCjud3UE501.png "title=" 1.png "alt=" Wkiol1nftd_zf9vqaaalcjud3ue501.png "/>-R Create System user

-D Specify home directory

-m system user forced generation, or not

-S shell type

Note: The database is best placed in a large enough hard disk or LV disk, to prevent the later database is getting larger and less disk space to use.

centos6: change MySQL user's owner and owner group

Command: Chown mysql:mysql MySQL

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/A7/4D/wKioL1nkrsrRc9BBAAAaJW1hjww122.png "title=" 1.png "alt=" Wkiol1nkrsrrc9bbaaaajw1hjww122.png "/>

④ generate the configuration file.

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/A7/06/wKioL1nfUOHCseAUAACRE8aWYvg728.png "title=" 1.png "alt=" Wkiol1nfuohcseauaacre8awyvg728.png "/>

The above name and path are other people's binary specified path and name, can only be step by step.

⑤ Modify the configuration file to specify the database file storage path.

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/A7/07/wKioL1nfUw-jeZSYAABcVHWeaH4765.png "title=" 1.png "alt=" Wkiol1nfuw-jezsyaabcvhweah4765.png "/>

⑥ Run the installation script.

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/A7/07/wKioL1nfVG6BCj51AAASHyCs_YI798.png "title=" 1.png "alt=" Wkiol1nfvg6bcj51aaashycs_yi798.png "/>

⑦ Run the service script to try to run up the MySQL service. 650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/A7/07/wKioL1nfVpWAfMVHAABqZmAf4aI630.png "title=" 1.png "alt=" Wkiol1nfvpwafmvhaabqzmaf4ai630.png "/>

⑧ Create the log and start the service again.

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/A7/07/wKioL1nfV6qRENLxAABVz7vYqb8284.png "title=" 1.png "alt=" Wkiol1nfv6qrenlxaabvz7vyqb8284.png "/>

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/A7/07/wKioL1nfV_6BEc9tAABYGUFpyL4227.png "title=" 1.png "alt=" Wkiol1nfv_6bec9taabygufpyl4227.png "/>

CENTOS6: Create a log file directly below the/var/log/and change its owner.

Command:

Touch/var/log/mysql.log

Chown mysql:root MySQL

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/A7/4D/wKioL1nksATC4m1AAAAKH8sip_E541.png "title=" 1.png "alt=" Wkiol1nksatc4m1aaaakh8sip_e541.png "/>

⑨ adds the path variable to facilitate later use of the command.

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/08/50/wKiom1nfW3LRgninAAARmQfJEVg925.png "title=" 1.png "alt=" Wkiom1nfw3lrgninaaarmqfjevg925.png "/>

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/08/50/wKiom1nfW5njH98UAAAgsSpwIY8045.png "title=" 1.png "alt=" Wkiom1nfw5njh98uaaagsspwiy8045.png "/>

⑩ running security scripts

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/A7/07/wKioL1nfWhOh04IbAACVvneXSdA896.png "title=" 1.png "alt=" Wkiol1nfwhoh04ibaacvvnexsda896.png "/>

Second, the source code compiled install bind

The picture is omitted, directly on the step.

① The compression package to the CentOS system and unzip the bind compression package.

② Create the System account.

Create named SYSTEM account: Useradd-r-d/var/named-m (forced home directory)-s/sbin/nologin named

③ View Help and specify various file paths.

./config--help "See Help"

./configure--prefix=/app/bind--without=openssl What to install if you lack anything

Remember to install the package group: Yum Groupinstall "Development tools"

④ Compile the installation.

Make-j 4 &&makeinstall "Specifying 4 processors for multithreaded compilation"

⑤ Add path: vim/etc/profile.d/bind.sh

Path=/app/bind/bin:/app/bind/sbin: $PATH

⑥ Creating a configuration file

Vim/app/bind/etc/named.conf

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/08/51/wKiom1nfZNaSGVmTAABOhSoo7z4468.png "title=" 1.png "alt=" Wkiom1nfznasgvmtaabohsoo7z4468.png "/>

dig >/var/named/name.ca Creating a root directory

Vim/var/nemed/test.com.zone fill in the database file "test use"

⑦ implementing RNDC Tools

Cd/app/bind/sbin

Rndc-confgen-r/dev/urandom >/app/bind/etc/rndc.conf "As long as there's no comment"

tail-n13/app/bind/etc/rndc.conf >>/app/bind/etc/named.conf "Remove the annotations"

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/08/51/wKiom1nfZSGQW-3xAAEPu3ymZ7I356.png "title=" 2.png "alt=" Wkiom1nfzsgqw-3xaaepu3ymz7i356.png "/>









Binary compilation installs MySQL (CENTOS6, 7) and source code compilation bind

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.