In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Installation platform centos 6.8 2.6.32-642.el6.x86_64
Turn off the firewall and selinux
Software version apr-1.5.2 apr-util-1.5.4 pcre-8.39 httpd-2.4.23 php-7.0.11 percona-5.6.26 zabbix-3.2.1
Install the dependency yum install-y gcc libtool libtool-ltdl libtool-ltdl-devel lynx gcc-c++ make zlib zlib-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers recode-devel php-mbstring php-bcmath lib curl-devel php-mysql tree autoconf httpd-manual mod_ssl mod_perl mod_auth _ mysql php-gd php-xml php-ldap php-xmlrpc mysql-connector-odbc libdbi-dbd-mysql net-snmp net-snmp-devel
Compile and install in LAMP environment
Mysql
Installation platform: centos 6.8 2.6.32-642.el6.x86_64
Percina version: Percona-Server-5.6.26-74.0-r32f8dfd-el6-x86_64-bundle.tar
Get address: https://www.percona.com/downloads/Percona-Server-5.6/Percona-Server-5.6.33-79.0/binary/redhat/6/x86_64/Percona-Server-5.6.33-79.0-r2084bdb-el6-x86_64-bundle.tar
Install epel-release-6-8.noarch.rpm libaio-0.3.107-10.el6.x86_64.rpm
Install the dependency yum install-y gcc gcc-c++ make cmake automake autoconf libxml2 libxml2-devel zlib zlib-devel ncurses ncurses-devel
Then yum jemalloc / / tokuDB memory allocation needs jemalloc support
The installation sequence of Percona-Server-5.6.26-74.0-r32f8dfd-el6-x86_64-bundle.tar after decompression is as follows:
Tar xvf Percona-Server-5.6.26-74.0-r32f8dfd-el6-x86_64-bundle.tar
Rpm-ivh Percona-Server-shared-56-5.6.26-rel74.0.el6.x86_64.rpm
Rpm-ivh Percona-Server-devel-56-5.6.26-rel74.0.el6.x86_64.rpm
Rpm-ivh Percona-Server-client-56-5.6.26-rel74.0.el6.x86_64.rpm
Rpm-ivh Percona-Server-server-56-5.6.26-rel74.0.el6.x86_64.rpm
Rpm-ivh Percona-Server-tokudb-56-5.6.26-rel74.0.el6.x86_64.rpm
Modify system parameters
Echo never > / sys/kernel/mm/redhat_transparent_hugepage/defrag
Echo never > / sys/kernel/mm/redhat_transparent_hugepage/enabled
Echo never > / sys/kernel/mm/transparent_hugepage/enabled
Echo never > / sys/kernel/mm/transparent_hugepage/defrag
It is recommended to write it into / etc/rc.local, and it can also take effect after restart.
Start the service: / etc/init.d/mysql start
Modify the mysql configuration file vim / etc/my.cnf
Add default-storage-engine=TokuDB
Restart the service: / etc/init.d/mysql restart
Enter: ps_tokudb_admin-- enable-uroot-p password is not set to empty by default
Enter mysql and verify:
Apache
Httpd depends on apr. The full name of apr-util pcre-devel apr is apache portable runtime, which enables httpd to run httpd-2.4 on 1.4 + or higher versions of apr.
Apache MPM event is not supported on this platform. Because the versions of apr and apr-util are lower and need to be upgraded to more than 1.5.0, reselect the tar package of apr-1.5.2 and apr-util-1.5.4 for recompilation.
Pcre (Perl Compatible Regular Expressions) is a Perl library, including a perl-compatible regular expression library
Tar xf libmcrypt-2.5.8.tar.gz
Cd libmcrypt-2.5.8
. / configure & & make & & make install
Vim / etc/ld.so.conf.d/local.conf # Editing library files
/ usr/local/lib # add the line
: wq # Save exit
Ldconfig-v
Tar xf apr-1.5.2.tar.gz
Cd apr-1.5.2
. / configure-- prefix=/usr/local/apr
Make & & make install
/ / modify the configure file when a rm: cannot remove `libtoolT': No such file or directory error occurs. RM='$RM' = > RM='$RM-f' is about 29605 lines.
Tar xf apr-util-1.5.4.tar.gz
Cd apr-util-1.5.4
. / configure-prefix=/usr/local/apr-util-with-apr=/usr/local/apr
Make & & make install
Tar xf pcre-8.39.tar.gz
Cd pcre-8.39
. / configure-- prefix=/usr/local/pcre
Make & & make install
Tar xf httpd-2.4.23.tar.gz
Cd httpd-2.4.23
/ configure-- prefix=/usr/local/apache-- with-apr=/usr/local/apr-- with-apr-util=/usr/local/apr-util-- with-pcre=/usr/local/pcre-- enable-nonportable-atomics=yes-- with-crypto-- enable-mods-shared=few-- enable-so-- enable-macro-- enable-data-- enable-http-- with-libxml2-- enable-request-- enable-include-- enable-deflate-- enable-logio-- enable-expires-- Enable-usertrack-enable-ssl-enable-info-enable-cgid-enable-rewrite-enable-negotiation-enable-sed-enable-vhost-alias-enable-ratelimit-enable-allowmethods-enable-authn-db-enable-dbd-enable-charset-lite-enable-cache--enable-cache-disk-enable-cache-socache-enable-authnz-ldap-enable-ldap-enable-dav--enable-dav-fs-enable-dav-lock- -with-ldap-enable-authnz-ldap-with-included-apr-enable-deflate
Make & & make install
Cd / usr/local/apache/bin
Ln-s / usr/local/apache/bin/apachectl / etc/init.d/httpd
Vim / usr/local/apache/conf/httpd/conf
Servername 127.0.0.1:80
/ etc/init.d/httpd start
Httpd-l
/ / error prompt: Bundled APR requested but not found at. / srclib/. Download and unpack the corresponding apr and apr-util packages to. / srclib/. Cp the extracted directories of apr and apr-util to the. / srclib/ directory, and then compile.
Cp-rf / root/apr-1.5.2. / httpd-2.4.23/srclib/apr
Cp-rf / root/apr-util-1.5.4. / httpd-2.4.23/srclib/apr-util
Php
Tar xf php-7.0.11.tar.gz
Cd php-7.0.11
. / configure-- prefix=/usr/local/php-- with-config-file-path=/usr/local/php/etc-- with-bz2-- with-curl-- enable-ftp-- enable-sockets-- disable-ipv6-- with-gd-- with-jpeg-dir=/usr/local-- with-png-dir=/usr/local-- with-freetype-dir=/usr/local-- enable-gd-native-ttf-- with-iconv-dir=/usr/local/lib/libconv-- enable- Mbstring-enable-calendar-with-gettext-with-libxml-dir=/usr/local-with-zlib-with-pdo-mysql=mysqlnd-with-mysqli=mysqlnd enable-dom enable-xml enable-fpm with-libdir=lib64 enable-bcmath enable-zip enable-pcntl enable-exif enable-sysvmsg enable-sysvsem enable-sysvshm enable-opcache enable-session enable-mbregex with-fpm-user=vagrant with- Fpm-group=nogroup-enable-wddx-with-mcrypt-enable-gd-native-ttf-enable-gd-jis-conv-with-openssl-with-zlib=/usr-with-recode=/usr-with-xmlrpc-enable-inline-optimization-disable-debug disable-rpath with-apxs2=/usr/local/apache/bin/apxs
Make
Make test
Make install
Vim / usr/local/apache/conf/httpd.conf
find
DirectoryIndex index.html
Modify to
DirectoryIndex index.php index.html
find
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
Add a line at the end
AddType application/x-httpd-php .php
[root@localhost bin] # / usr/local/apache/bin/apachectl-t
Syntax OK
Test ok, in pkill httpd
Finally restart apache.
[root@localhost bin] # / usr/local/apache/bin/apachectl start
[root@localhost htdocs] # mv index.html index.php
[root@localhost htdocs] # cat index.php # is modified to read as follows
At this point, the LAMP environment compilation and installation is complete.
Zabbix
Groupadd-g 201 zabbix
Useradd-g zabbix-u 201-s / sbin/nologin zabbix
Tar zxvf zabbix-3.2.1.tar.gz
Cd zabbix-3.2.1
/ configure-- prefix=/usr/local/zabbix-- enable-server-- enable-proxy-- enable-agent-- with-mysql=/usr/bin/mysql_config-- with-net-snmp-- with-libcurl
Make & & make install
Mysql-e "create database zabbix default charset utf8;"
Mysql-e "grant all on zabbix.* to zabbix@localhost identified by 'zabbix';"
Mysql-uzabbix-pzabbix zabbix
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.