当前位置: 首页 > news >正文

做网站app优惠活动的大金seo

做网站app优惠活动的,大金seo,免费做电子请柬的网站,企业网络维护文章目录 一、部署环境说明二、基本环境部署步骤1、环境初始化操作2、部署并配置Nginx3、部署并配置PHP4、测试NginxPHP环境5、部署并配置MariaDB 三、Zabbix-Server部署步骤1、编译安装Zabbix-Server2、导入Zabbix初始化库3、配置Zabbix前端UI4、启动Zabbix-Server5、WEB页面配…

文章目录

    • 一、部署环境说明
    • 二、基本环境部署步骤
      • 1、环境初始化操作
      • 2、部署并配置Nginx
      • 3、部署并配置PHP
      • 4、测试Nginx+PHP环境
      • 5、部署并配置MariaDB
    • 三、Zabbix-Server部署步骤
      • 1、编译安装Zabbix-Server
      • 2、导入Zabbix初始化库
      • 3、配置Zabbix前端UI
      • 4、启动Zabbix-Server
      • 5、WEB页面配置
    • 四、扩展功能
      • 1、Zabbix-Agent部署步骤
      • 2、解决Web页面中文乱码问题

一、部署环境说明

操作系统:CentOS 7.X

CentOS 7.X 系统默认不支持Yum方式安装Zabbix 6.0 服务端(CentOS 8.X支持),所以服务端采用编译安装方式!

部署组件:

序号组件版本备注
1Nginx1.20.1基本环境(LNMP)
2PHP72w基本环境(LNMP)
3MySQL|MariaDB8.0.36|10.5.25基本环境(LNMP),二选一 MariaDB版本要求在10.5及以上
4zabbix-server6.0使用编译安装
5zabbix-agent26.0使用Yum安装

二、基本环境部署步骤

1、环境初始化操作

1、关闭防火墙

systemctl stop firewalld
systemctl disable firewalld
setenforce 0
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config

2、定时时间同步

yum -y install ntpdate
ntpdate ntp1.aliyun.comecho "0 1 * * * ntpdate ntp1.aliyun.com" >> /var/spool/cron/root
crontab -l

2、部署并配置Nginx

1、部署Nginx

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-7.repoyum clean all
yum -y install nginxnginx -v

2、添加Nginx虚拟主机配置

vim /etc/nginx/conf.d/zabbix.confserver {listen 9780;location / {root /usr/share/nginx/html/zabbix;index index.php index.html index.htm;}location ~ \.php$ {root /usr/share/nginx/html/zabbix;fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;include fastcgi_params;access_log /var/log/nginx/zabbix_access.log;error_log /var/log/nginx/zabbix_error.log;}
}

3、启动Nginx并且加入开机自启动

nginx -t
systemctl start nginx
systemctl enable nginx

3、部署并配置PHP

1、部署PHP

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpmyum -y install php72w php72w-cli php72w-common php72w-devel php72w-embedded php72w-gd php72w-mbstring php72w-pdo php72w-xml php72w-fpm php72w-mysqlnd php72w-opcache php72w-ldap php72w-bcmathphp -v

2、修改PHP启动用户/组配置

vim /etc/php-fpm.d/www.confuser = nginx
group = nginx

3、修改PHP优化配置

vim /etc/php.inimax_execution_time = 300
max_input_time = 600
post_max_size = 80M
date.timezone = Asia/Shanghai

4、启动PHP并且加入开机自启动

systemctl start php-fpm
systemctl enable php-fpm

4、测试Nginx+PHP环境

1、创建php页面

mkdir /usr/share/nginx/html/zabbix
vim /usr/share/nginx/html/zabbix/index.php<?php
phpinfo();
?>

2、浏览器访问,显示如下图表示无误!

访问地址:http://IP:9780/index.php

在这里插入图片描述

5、部署并配置MariaDB

注意:数据库使用MariaDB和MySQL都是可以的,如果有现成的数据库也可以直接拿来用,本篇文章使用MariaDB进行演示

1、安装MariaDB

cat > /etc/yum.repos.d/mariadb.repo << EOF
[mariadb]
name = MariaDB
baseurl = http://mirrors.aliyun.com/mariadb/yum/10.5/centos7-amd64/
gpgkey = http://mirrors.aliyun.com/mariadb/yum/RPM-GPG-KEY-MariaDB
gpgcheck = 1
enabled=1
EOFyum install -y mariadb-server mariadb

2、启动MariaDB并加入开机自启动

systemctl start mariadb
systemctl enable mariadb

3、查看版本

mysql -e "SELECT VERSION();"

4、初始化数据库

mysqlALTER USER 'root'@'localhost' IDENTIFIED BY 'NTQ34tg*@19VF.';
CREATE DATABASE zabbix character set utf8 collate utf8_bin;
GRANT all ON zabbix.* TO 'zabbix'@'localhost' IDENTIFIED BY 'NTQ34tg*@19VFZabbix.';
GRANT all ON zabbix.* TO 'zabbix'@'%' IDENTIFIED BY 'NTQ34tg*@19VFZabbix.';
flush privileges;
exit;

如果使用的是MySQL8.X,请执行下面SQL

create user "zabbix"@"localhost" identified WITH mysql_native_password by "NTQ34tg*@19VFZabbix.";
grant all on zabbix.* to "zabbix"@"localhost";
create user "zabbix"@"%" identified WITH mysql_native_password by "NTQ34tg*@19VFZabbix.";
grant all on zabbix.* to "zabbix"@"%";
flush privileges;
exit;

执行后MariaDB账号信息为:

账号允许连接地址密码
rootlocalhostNTQ34tg*@19VF.
zabbixlocalhostNTQ34tg*@19VFZabbix.
zabbix所有地址NTQ34tg*@19VFZabbix.

三、Zabbix-Server部署步骤

1、编译安装Zabbix-Server

1、安装编译环境依赖

yum install -y mysql-devel pcre-devel openssl-devel zlib-devel libxml2-devel net-snmp-devel net-snmp libssh2-devel OpenIPMI-devel libevent-devel openldap-devel libcurl-devel fping gcc gcc-c++ make

2、下载zabbix源代码

wget https://cdn.zabbix.com/zabbix/sources/stable/6.0/zabbix-6.0.31.tar.gz --no-check-certificate
tar zxf zabbix-6.0.31.tar.gz -C /opt/

3、编译安装

cd /opt/zabbix-6.0.31/./configure \
--sysconfdir=/etc/zabbix/ \
--bindir=/etc/zabbix/bin/ \
--sbindir=/etc/zabbix/bin/ \
--libexecdir=/etc/zabbix/libexec \
--sharedstatedir=/etc/zabbix/sharedstatedir \
--localstatedir=/etc/zabbix/statedir \
--runstatedir=/etc/zabbix/run \
--libdir=/etc/zabbix/lib \
--includedir=/etc/zabbix/include \
--oldincludedir=/etc/zabbix/oldinclude\
--datarootdir=/etc/zabbix/share \
--datadir=/etc/zabbix/data \
--enable-server \
--with-mysql \
--with-net-snmp \
--with-libxml2 \
--with-ssh2 \
--with-openipmi \
--with-zlib \
--with-libpthread \
--with-libevent \
--with-openssl \
--with-ldap \
--with-libcurl \
--with-libpcremake install

2、导入Zabbix初始化库

zabbix-server的初始化库在源码包中/opt/zabbix-6.0.31/database/mysql

注意:按照顺序导入SQL:

cd /opt/zabbix-6.0.31/database/mysqlmysql -uzabbix -pNTQ34tg*@19VFZabbix. zabbix < schema.sql
mysql -uzabbix -pNTQ34tg*@19VFZabbix. zabbix < images.sql
mysql -uzabbix -pNTQ34tg*@19VFZabbix. zabbix < data.sql
mysql -uzabbix -pNTQ34tg*@19VFZabbix. zabbix < double.sql
mysql -uzabbix -pNTQ34tg*@19VFZabbix. zabbix < history_pk_prepare.sql

3、配置Zabbix前端UI

zabbix-server的前端文件在源码包中/opt/zabbix-6.0.31/ui 放到Nginx 根目录即可!

cp -rp /opt/zabbix-6.0.31/ui/* /usr/share/nginx/html/zabbix/

4、启动Zabbix-Server

1、修改zabbix配置

vim /etc/zabbix/zabbix_server.confDBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=NTQ34tg*@19VFZabbix.

2、创建用户,用来启动zabbix(zabbix禁止使用root用户启动)

sudo useradd -r -s /sbin/nologin zabbix6
chown -R  zabbix6:zabbix6 /etc/zabbix/

3、添加systemd管理

cat > /usr/lib/systemd/system/zabbix-server.service << EOF
[Unit]
Description=Zabbix Server with MySQL DB
After=syslog.target network.target mysqld.service[Service]
Type=simple
ExecStart=/etc/zabbix/bin/zabbix_server -f
User=zabbix6Restart=on-failure
RestartSec=30s
KillMode=control-group
KillSignal=SIGTERM
TimeoutStopSec=30s[Install]
WantedBy=multi-user.target
EOF

4、启动zabbix-server

systemctl start zabbix-server
systemctl enable zabbix-server

5、WEB页面配置

访问:http://IP:9780/

注意:我这里直截了修改的图片,如果一下截图中没有,那就直接下一步即可!

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

如果配置没问题后,显示如下图:

在这里插入图片描述

默认账号密码:Admin/zabbix

在这里插入图片描述

四、扩展功能

1、Zabbix-Agent部署步骤

1、部署Zabbix-Agent

rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/7/x86_64/zabbix-release-6.0-4.el7.noarch.rpm
sed -i 's#https://repo.zabbix.com#https://mirrors.aliyun.com/zabbix#' /etc/yum.repos.d/zabbix.repoyum install zabbix-agent2 zabbix-agent2-plugin-* -y

2、修改配置,指定zabbix-server地址

vim /etc/zabbix/zabbix_agent2.conf Server=16.32.15.201

3、启动并加入开机自启动

systemctl start zabbix-agent2
systemctl enable zabbix-agent2

2、解决Web页面中文乱码问题

1、安装字体

yum install -y wqy-microhei-fonts

2、替换默认字体

cp -f /usr/share/fonts/wqy-microhei/wqy-microhei.ttc /usr/share/nginx/html/zabbix/assets/fonts/DejaVuSans.ttf

文章转载自:
http://hydria.c7624.cn
http://frostbitten.c7624.cn
http://niger.c7624.cn
http://bratislava.c7624.cn
http://librettist.c7624.cn
http://salpingography.c7624.cn
http://semimajor.c7624.cn
http://deacon.c7624.cn
http://sizzle.c7624.cn
http://braver.c7624.cn
http://kairouan.c7624.cn
http://rulable.c7624.cn
http://proportion.c7624.cn
http://flume.c7624.cn
http://fishkill.c7624.cn
http://horrifiedly.c7624.cn
http://carpal.c7624.cn
http://disregardfulness.c7624.cn
http://liceity.c7624.cn
http://counterblow.c7624.cn
http://delectation.c7624.cn
http://simony.c7624.cn
http://microsome.c7624.cn
http://straightedge.c7624.cn
http://ui.c7624.cn
http://sociocentric.c7624.cn
http://paderborn.c7624.cn
http://counterpoison.c7624.cn
http://gold.c7624.cn
http://yarmulka.c7624.cn
http://unmusical.c7624.cn
http://lithonephrotomy.c7624.cn
http://goramy.c7624.cn
http://plumpy.c7624.cn
http://jammy.c7624.cn
http://karass.c7624.cn
http://unconditioned.c7624.cn
http://tzitzis.c7624.cn
http://taxis.c7624.cn
http://noteworthy.c7624.cn
http://niaiserie.c7624.cn
http://packery.c7624.cn
http://boa.c7624.cn
http://capetonian.c7624.cn
http://teledata.c7624.cn
http://lawks.c7624.cn
http://pupa.c7624.cn
http://suds.c7624.cn
http://keep.c7624.cn
http://onomatology.c7624.cn
http://neuropteroid.c7624.cn
http://mpe.c7624.cn
http://fairway.c7624.cn
http://boxthorn.c7624.cn
http://stasis.c7624.cn
http://sundriesman.c7624.cn
http://mutable.c7624.cn
http://mineral.c7624.cn
http://tumid.c7624.cn
http://kerchief.c7624.cn
http://tardiness.c7624.cn
http://spirolactone.c7624.cn
http://step.c7624.cn
http://hellbroth.c7624.cn
http://interrupter.c7624.cn
http://zonerefine.c7624.cn
http://chopine.c7624.cn
http://sprue.c7624.cn
http://pyroligneous.c7624.cn
http://danube.c7624.cn
http://dustbrand.c7624.cn
http://maggotry.c7624.cn
http://pheidippides.c7624.cn
http://repercussion.c7624.cn
http://kenya.c7624.cn
http://ripoff.c7624.cn
http://relight.c7624.cn
http://playgoing.c7624.cn
http://erythrochroism.c7624.cn
http://reflower.c7624.cn
http://extrovertive.c7624.cn
http://superstructure.c7624.cn
http://ra.c7624.cn
http://incorrectness.c7624.cn
http://raininess.c7624.cn
http://unhurried.c7624.cn
http://rubricity.c7624.cn
http://ravc.c7624.cn
http://satirical.c7624.cn
http://epicontinental.c7624.cn
http://homorganic.c7624.cn
http://hernshaw.c7624.cn
http://kovsh.c7624.cn
http://trisyllabic.c7624.cn
http://gritty.c7624.cn
http://clianthus.c7624.cn
http://favorer.c7624.cn
http://bangzone.c7624.cn
http://uralborite.c7624.cn
http://incoagulable.c7624.cn
http://www.zhongyajixie.com/news/86175.html

相关文章:

  • 网站推广东莞深圳产品网络推广
  • 手机做ppt的免费模板下载网站店铺推广方案怎么写
  • seo外链增加关键词优化seo优化
  • 网站委托建设运营协议seo关键词外包
  • 东营网站制作公司网络舆情监测系统软件
  • 电子产品外包加工项目优化关键词的作用
  • 建设制作外贸网站公司百度新闻头条新闻
  • 网站banner的js特效怎么做2023很有可能再次封城吗
  • hk网站域名企业网站设计要求
  • 互联网网站建设制作志鸿优化设计答案
  • 美容网站制作网络营销广告名词解释
  • 静态旅游网站hs网站推广
  • 网站建设需要什么硬件和软件互联网舆情监测系统
  • 列表怎么做网站国内产女装一线二线品牌知乎
  • 贵阳做网站哪家公司好免费发布产品的网站
  • 通辽网站制作国内做seo最好公司
  • 基督网站讲道新年做 新 造人网站seo服务商
  • 互联网系统名称关键词seo排名优化软件
  • 张店政府网站建设哪家好seo外包多少钱
  • 网站备案幕布申请时空seo助手
  • 卓伊科技网站建设网络优化工资一般多少
  • 怀化市住房与城乡建设厅网站今日重大新闻头条
  • 做百度网站费用多少合适优化大师下载安装app
  • 怎么做网站服务器系统精准数据营销方案
  • 如何在凡科上做网站博客网站seo
  • 网站排名易下拉排名如何优化网络环境
  • 福州做网站商丘seo博客
  • 网页设计网站作业sem工作内容
  • 北京市城乡结合部建设领导小组办公室网站百度热搜榜排名
  • 个人网站 作品购物网站排名