>

美洲杯在线投注_2019美洲杯外围投注[投注官网]

热门关键词: 美洲杯在线投注,2019美洲杯外围投注[投注官网]

CentOS 7 LNMP环境搭建Zabbix3.0

- 编辑:美洲杯在线投注 -

CentOS 7 LNMP环境搭建Zabbix3.0

  1. 修改Nginx配置文件如下

    vim /usr/local/nginx/conf/nginx.conf

  1. 复制安装包中的php.ini-production到 /usr/local/php/etc/php.ini

    cp php.ini-production /usr/local/php/etc/php.ini

    cp /usr/local/php/etc/php-fpm.conf.default.conf php-fpm.conf

  2. 测试PHP安装是否成功。

    /usr/local/php/sbin/php-fpm -t

  3. 测试成功之后启动PHP

    cp /usr/local/src/php-5.3.27/sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm chmod 755 /etc/init.d/php-fpm

    service php-fpm start

     

  4. 添加到开机启动

    chkconfig php-fpm on

  5. 检查是否启动

    ps aux |grep php-fpm netstat -ant |grep 9000

第四部分 配置Nginx运行PHP

 

View Code

第一部分:安装MySQL 5.7

  1. 安装最新版的MySQL

    yum install mysql-community-server

  2. 安装完成之后启动并查看MySQL状态:

    service mysqld start service mysqld status

  3. 手动验证MySQL安装的版本:

    mysql --version

  4. 安装MySQL 5.7之后,MySQL会生成一个随机密码在/var/log/mysqld.log文件中,使用如下命令查看密码:

    grep 'temporary password' /var/log/mysqld.log

  5. 记录密码之后,运行 mysql_secure_installation初始化MySQL,初始化过程中会提示输入随机密码

    mysql_secure_installation

  6. 使用新设置的密码连接MySQL:

    mysql -u root -p

  7. 至此,MySQL 5.7安装完成。

ZABBIX 的详细介绍请点这里
ZABBIX 的下载地址请点这里

篮球世界杯在线投注,如下图所示,表示验证成功:

CentOS 7源码编译安装PHP5.6和Nginx1.7.9及MySQL(搭建LNMP环境) http://www.linuxidc.com/Linux/2015-12/126200.htm

yum install -y autoconf make automake imake cmake gcc gcc-c   libaio libaio-devel bzr bison expat-devel libtool ncurses5-devel gd-devel libjpeg-devel libpng-devel libxml2-devel bzip2-devel libcurl-devel
yum install pcre*
yum install openssl*

yum install epel-release  
yum clean all  
yum repolist
  1. 下载安装zabbix的YUM源

    rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm

  2. 安装Zabbix

    yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-get

  3. 安装之后进入MySQL数据库,创建Zabbix数据库

    create database zabbix character set utf8 collate utf8_bin; grant all privileges on zabbix.* to 'zabbix'@'%' identified by 'zabbixpass'; flush privileges;

  4. 导入Zabbix到数据库

    cd /usr/share/doc/zabbix-server-mysql-3.0.1/ zcat create.sql.gz |mysql -uroot -ppass zabbix

  5. 配置zabbix用户

    groupadd zabbix useradd -g zabbix -s /bin/false zabbix

  6. 配置Zabbix服务器端

    vim /etc/zabbix/zabbix_server.conf

    DBHost=localhost DBName=zabbix DBUser=zabbix DBPassword=zabbixpass

    cd /usr/share/ cp -r zabbix /usr/local/nginx/html chown -R zabbix:zabbix /etc/zabbix chown -R zabbix:zabbix /usr/share/zabbix chown -R zabbix:zabbix /usr/lib/zabbix

  7. Zabbix加入开机启动并启动

    systemctl enable zabbix-server systemctl start zabbix-server

  8. 在浏览器中测试Zabbix

  1. 重启PHP

    service php-pfm stop service php-pfm start

CentOS下Zabbix 3.0.4安装部署 http://www.linuxidc.com/Linux/2017-01/139087.htm

  1. 首先下载MySQL Yum repository,CentOS 7对应的下载链接如下

    wget http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm

  2. 下载完成之后安装下载好的rpm文件

    yum localinstall mysql57-community-release-el7-7.noarch.rpm

  3.  安装完成之后验证MySQL YUM repository

    yum repolist enabled | grep "mysql.-community."

chmod -R 755 /etc/zabbix/web

预先安装:

篮球世界杯在线投注 1

篮球世界杯在线投注 2

安装部署分布式监控系统Zabbix 2.06 http://www.linuxidc.com/Linux/2013-07/86942.htm

  1. 进入解压之后的Nginx目录,运行configure

    ./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_stub_status_module --with-pcre

  2. 编译安装

    make make install

  3. 测试Nginx

    /usr/local/nginx/sbin/nginx -t

篮球世界杯在线投注 3

64位CentOS 6.2下安装Zabbix 2.0.6   http://www.linuxidc.com/Linux/2014-11/109541.htm

4. 

make
make install

CentOS 7源码安装最新版LNMP环境 http://www.linuxidc.com/Linux/2015-04/116058.htm

常见错误排除

1. 首先下载Nginx的最新稳定版,本示例使用的版本是1.10,下载之后解压压缩包:

  1. 创建PHP测试网页

    vim /usr/local/nginx/html/test.php

     phpinfo();
    

    ?>

  2. 在浏览器中输入localhost/test.php,测试php页面

  3. 配置PHP参数,Zabbix的硬件要求

    vim /usr/local/php/etc/php.ini

一些Zabbix相关教程集合

第五部分 安装Zabbix

问题,运行Zabbix时出现“

Zabbix基本配置及监控主机 http://www.linuxidc.com/Linux/2016-12/138504.htm

CentOS 6.3下Zabbix监控MySQL数据库参数 http://www.linuxidc.com/Linux/2013-05/84800.htm

CentOS 7.0 x64下Zabbix 3.0 安装笔记  http://www.linuxidc.com/Linux/2016-11/137044.htm

FastCGI sent in stderr: "PHP message: PHP Warning:  require_once(/etc/zabbix/web/maintenance.inc.php):   failed to open stream: Permission denied in /app/nginx/html/zabbix/include/classes/core/ZBase.php on line 292

PHP message: PHP Fatal error:  require_once(): Failed opening required '/etc/zabbix/web/mainte

篮球世界杯在线投注 4

第二部门  安装Nginx

max_execution_time = 300
max_input_time = 300
memory_limit = 128M
post_max_size = 16M
upload_max_filesize = 2M
date.timezone = Asia/Shanghai
always_populate_raw_post_data = -1
tar zxvf nginx-1.10.1.tar.gz

解决方法:

user nobody nobody;
worker_processes 2;
error_log /usr/local/nginx/logs/nginx_error.log crit;
pid /usr/local/nginx/logs/nginx.pid;
worker_rlimit_nofile 51200;

events
{
    use epoll;
    worker_connections 6000;
}

http
{
    include mime.types;
    default_type application/octet-stream;
    server_names_hash_bucket_size 3526;
    server_names_hash_max_size 4096;
    log_format combined_realip '$remote_addr $http_x_forwarded_for [$time_local]'
    '$host "$request_uri" $status'
    '"$http_referer" "$http_user_agent"';
    sendfile on;
    tcp_nopush on;
    keepalive_timeout 30;
    client_header_timeout 3m;
    client_body_timeout 3m;
    send_timeout 3m;
    connection_pool_size 256;
    client_header_buffer_size 1k;
    large_client_header_buffers 8 4k;
    request_pool_size 4k;
    output_buffers 4 32k;
    postpone_output 1460;
    client_max_body_size 10m;
    client_body_buffer_size 256k;
    client_body_temp_path /usr/local/nginx/client_body_temp;
    proxy_temp_path /usr/local/nginx/proxy_temp;
    fastcgi_temp_path /usr/local/nginx/fastcgi_temp;
    fastcgi_intercept_errors on;
    tcp_nodelay on;
    gzip on;
    gzip_min_length 1k;
    gzip_buffers 4 8k;
    gzip_comp_level 5;
    gzip_http_version 1.1;
    gzip_types text/plain application/x-javascript text/css text/htm application/xml;

server
{
    listen 80;
    server_name localhost;
    index index.html index.htm index.php;
    root /usr/local/nginx/html;

    location ~ .php$ {
        include fastcgi_params;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME /usr/local/nginx/html$fastcgi_script_name;
    }

}

}

 

第三部分  安装PHP

  1. 首先安装开发软件包:

    yum -y groupinstall "Development Tools"

  2. 下载PHP最新稳定版,解压安装包,本示例使用的是PHP 5.6.25

    tar -zxvf php-5.6.25.tar.gz

  3. 切换到PHP目录,运行configure:

    ./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 -enable-mbstring -enable-calendar -with-gettext -with-libxml-dir=/usr/local -with-zlib -with-pdo-mysql=mysqlnd -with-mysqli=mysqlnd -with-mysql=mysqlnd -enable-dom -enable-xml -enable-fpm -with-libdir=lib64 -enable-bcmath

CentOS 7.2 安装部署 Zabbix 3.0.4 详解  http://www.linuxidc.com/Linux/2016-11/137671.htm

概述:在CentOS 7 64位操作系统环境下搭建LNMP(Linux Nginx MySQL PHP)来运行Zabbix监控程序

Ubuntu 14.04下Zabbix2.4.5 源码编译安装  http://www.linuxidc.com/Linux/2015-05/117657.htm

本文永久更新链接地址http://www.linuxidc.com/Linux/2017-02/140134.htm

本文由计算机教程发布,转载请注明来源:CentOS 7 LNMP环境搭建Zabbix3.0