# #nginx
Cd/opt
TAR-XVF nginx-1.8.1.tar.gz-c/usr/src/
cd/usr/src/nginx-1.8.1
./configure--prefix=/usr/local/nginx--with-http_stub_status_module--with-http_gzip_static_module--with-http_ Ssl_module && make && make install | | echo "Nginx Error" >>/opt/error.txt
#mysql
cd/opt/
TAR-XVF mysql-5.6.29.tar.gz-c/usr/src/
cd/usr/src/mysql-5.6.29
./configure--prefix=/usr/local/mysql--with-plugins=max--with-extra-charsets=all && make && make Install | | echo "MySQL Error" >>/opt/error.txt
-dwith_innobase_storage_engine=1-cmake_install_prefix=/usr/local/mysql-dextra_charsets=all
# #PHP
Cd/opt
TAR-XVF php-5.6.19.tar.gz-c/USR/SRC
cd/usr/src/php-5.6.19
./configure--prefix= './configure '--prefix=/usr/local/php5 '--host=x86_64-pc-linux-gnu '--disable-cli '-- enable-cgi '--enable-fastcgi '--disable-discard-path '--disable-force-cgi-redirect '--without-pear '-- Enable-bcmath '--with-bz2 '--disable-calendar '--disable-ctype '--without-curl '--without-curlwrappers '-- Disable-dbase '--disable-dom '--disable-exif '--without-fbsql '--without-fdftk '--disable-filter '-- Disable-ftp '--with-gettext '--without-gmp '--disable-ipv6 '--disable-json '--without-kerberos '-- Disable-libxml '--disable-mbstring '--with-mcrypt=/usr/local/lib '--without-msql '--without-mssql '-- With-ncurses '--with-openssl '--with-openssl-dir=/usr '--disable-pcntl '--disable-pdo '--without-pgsql '-- Without-pspell '--without-recode '--disable-simplexml '--disable-shmop '--without-snmp '--disable-soap '-- Enable-sockets '--without-sybase '--without-sybase-ct '--disable-sysvmsg '--disable-sysvsem '--disable-sysvshm "'--without-tidY '--disable-tokenizer '--disable-wddx '--disable-xml '--disable-xmlreader '--disable-xmlwriter '-- Without-xmlrpc '--without-xsl '--disable-zip '--with-zlib '--disable-debug '--enable-dba '-- With-db4 '--disable-flatfile '--with-gdbm '--disable-inifile '--without-qdbm '--without-freetype-dir '-- Without-t1lib '--disable-gd-jis-conv '--with-jpeg-dir=/usr '--with-png-dir=/usr '--without-xpm-dir '--WITH-GD ' '--with-mysql=/usr/local/mysql '--with-readline '--without-libedit '--without-mm '--without-sqlite '--with-pic '--with-config-file-path=/usr/local/php5/lib/php.ini '--enable-pdo '--with-pdo-mysql=/usr/local/mysql '-- With-curl '--enable-ctype '--enable-json '--enable-filter '--enable-dom '--enable-hash '-- With-imap '--enable-libxml '--enable-mbstring '--enable-simplexml '--with-kerberos '--with-imap-ssl '-- With-snmp '--enable-soap '--enable-xml '--with-mhash '--enable-posix ' '--enable-cache '--enablE-FPM ' && make && make install | | echo "PHP Erroe" >>/opt/error.txt
The installation process error is missing package. Several important errors are:
1 configure:error:DBA:Could not find necessary header file (s).
Solution: Yum Install Gdbm-devel Db4-devel
2 Checking for DB4 major version ... configure:error:Header contains different version
Resolution: Error:configure:error:DBA:Could not find necessary header file (s).
Fix:yum Install Gdbm-devel Db4-devel
Configure:error:Header contains different versio
Compiling and installing DB4
CD Build_unix
.. /dist/configure--enable-cxx
Make
Make install
Libc-client.a
Yum Install libc-client-devel.x86_64
Ln-s/usr/lib64/libc-client.so/usr/lib/libc-client.so
TAR-ZXVF libmcrypt-2.5.8.tar.gz
./configure
Make && make install
Accelerating plug-ins-----Installing PHP Extensions
1.cd/opt/php-5.6.19/ext/opcache/# Switch to PHP extract package directory
/usr/local/php5/bin/phpize #用来扩展php扩展模块
./configure--with-php-config=/usr/local/php5/bin/php-config #编译安装
Make && make install
2. After the installation is complete, add the php.ini inside the
CP Php.ini-production/usr/local/php5/etc/php.ini
Vim/usr/local/php5/etc/php.ini
Extension=opcache.so
/ETC/INIT.D/PHP-FPM start
# # Redis
Cd/opt
TAR-XVF redis-2.0.4.tar.gz-c/usr/local/
cd/usr/local/redis-2.0.4
Make && make install | | echo "Redis error" >>/opt/error.txt
Each software version of the new project.
Erlang R19.1
Nginx 1.8.1
php-5.6.19
MySQL 5.6.29
Jdk-8u45
redis-2.0.4
Installing Nagios is monitored by the end of xinetd boot
Useradd Nagios
TAR-ZXVF nagios-plugins-1.4.15.tar.gz
TAR-ZXVF nrpe-2.12.tar.gz
Yum Install Perl-devel Perl-cpan openssl-devel-y
cd/home/cmge/nagios-plugins-1.4.15
./configure--prefix=/usr/local/nagios--with-nagios-user=nagios--with-nagios-gourp=nagios--enable-perl-modules- -with-mysql=/usr/local/mysql/--with-openssl=/usr/local/openssl
Make
Make install
cd/home/cmge/nrpe-2.12
./configure--prefix=/usr/local/nagios
Make all
Make Install-plugin
Make Install-daemon
Make Install-daemon-config
Make install-xinetd
Chown-r Nagios:nagios/usr/local/nagios
\cp/home/cmge/nrpe.cfg/usr/local/nagios/etc/
\cp/home/cmge/nrpe/etc/xinetd.d/
\cp/home/cmge/snmpd.conf/etc/snmp
Cd/home/cmge
SH yum2.txt
Yum Install Xinetd-y
Echo ' # Local services ' >>/etc/services
Echo ' Nrpe 5666/tcp #nrpe ' >>/etc/services
Yum Install Dstat Iptraf sysstat-y
Iptables-i input-s 58.215.41.132-p UDP--dport 161-j ACCEPT
http://www.cnblogs.com/mchina/archive/2013/02/20/2883404.html installation Nagiox
Client Nagios 6524375
Nagios adds a monitored machine 46707763
Server, monitoring client, IP configuration in/usr/local/nagios/etc/objects/hosts.cfg
To monitor the services that are currently being added to you in/usr/local/nagios/etc/objects/ Templates.cfg at the end, you can adjust the next position, such as the other file services.cfg, if modified to another name, nagios.cfg corresponding needs to be modified, or not loaded
Monitoring side, after the installation configuration, the main configuration file:/usr/local/nagios/etc/nrpe.cfg This is a command-first, some default monitoring server, such as disk, load
LNMP Installation and Nagios