zabbix安装详解.docx
文本预览下载声明
ZABBIX 安装基础环境安装zabbix安装需要LAMP或者LNMP环境,本次使用LNMPNginx安装源码获取地址/download/nginx-1.8.0.tar.gz安装#yum -y install pcre-devel# tar xf nginx-1.8.0.tar.gz # cd nginx-1.8.0/ #./configure--prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_ssl_module --with-http_stub_status_module --with-http_gzip_static_module --with-pcre# make make installphp安装源码获取地址 /get/php-5.6.15.tar.gz/from/this/mirror安装#yum -y install bzip2-devel libcurl-devel libxml2-devel gd-devel jpeg-devel # tar xf php-5.6.15.tar.gz# cd php-5.6.15#./configure --prefix=/usr/local/php-5.6.15 --with-config-file-path --with-bz2 --with-curl --enable-ftp --enable-sockets --disable-ipv6 --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --enable-gd-native-ttf --with-iconv-dir --enable-mbstring --enable-calendar --with-gettext --with-libxml-dir --with-zlib --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --with-mysql=mysqlnd --enable-dom --enable-xml --enable-fpm --with-libdir=lib64 --enable-bcmath --enable-mbstring --enable-sockets #make make install源码包中copy配置文件# cp php.ini-production /usr/local/php-5.6.15/etc/php.ini# cp /usr/local/php-5.6.15/etc/php-fpm.conf.default /usr/local/php-5.6.15/etc/php-fpm.conf# cd /usr/local/php-5.6.15/修改监听# vim etc/php-fpm.conflisten = /tmp/php.socket启动php-fpm# sbin/php-fpm -c etc/php.inimysql安装源码获取地址/get/Downloads/MySQL-5.6/mysql-5.6.27-linux-glibc2.5-x86_64.tar.gz解压到指定目录# tar xf mysql-5.6.27-linux-glibc2.5-x86_64.tar.gz -C /usr/local/# ln -sv mysql-5.6.27-linux-glibc2.5-x86_64 mysql创建数据存放目录及用户# mkdir -p /data/mysql# groupadd mysql# useradd -g mysql -M -s /sbin/nologin mysql# chown -R mysql.mysql /data/mysql# chown -R mysql.mysql /usr/local/mysql创建配置文件及启动脚本# cd /usr/local/mysql# cp support-files/f /etc/f#vim /etc/mysql[mysqld]datadir=/data/mysqlsocket=/tmp/mysql.sockuser=mysqlcharacter-set-server=utf8max_connections=1024default_storage_engine=INNODBsql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES# Disabling symbolic-links is recommended to prevent assorted security ri
显示全部