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

做的网站没有手机版便宜网站建设怎么样

做的网站没有手机版,便宜网站建设怎么样,文化产品电商网站建设规划,棋牌源码搭建论坛目录 1、rpm安装zabbix_agentd服务 2、编写zabbix_agentd.conf文件 3、编写模板文件 4、创建mysql用户并赋权限 5、创建.my.cnf文件 6、将规则添加到SELinux策略中 注意#xff1a; 若模板无法读取.my.cnf 信息#xff0c;从而导致监控报错#xff0c;可以尝试修改模… 目录 1、rpm安装zabbix_agentd服务 2、编写zabbix_agentd.conf文件 3、编写模板文件 4、创建mysql用户并赋权限 5、创建.my.cnf文件 6、将规则添加到SELinux策略中 注意 若模板无法读取.my.cnf 信息从而导致监控报错可以尝试修改模板配置配置文件 1、rpm安装zabbix_agentd服务 ​ rpm -Uvh https://repo.zabbix.com/zabbix/6.4/rhel/7/x86_64/zabbix-release-6.4-1.el7.noarch.rpm yum clean all# b. Install Zabbix agent yum install zabbix-agent # c. Start Zabbix agent process # Start Zabbix agent process and make it start at system boot.sudo systemctl stop zabbix-agent systemctl restart zabbix-agent systemctl enable zabbix-agent 2、编写zabbix_agentd.conf文件 cd /etc/zabbix vim zabbix_agentd.confPidFile/var/run/zabbix/zabbix_agentd.pid LogFile/var/log/zabbix/zabbix_agentd_1.log LogFileSize0 Server192.168.3.246 ServerActive192.168.3.246 Hostname192.168.3.244 Include/etc/zabbix/zabbix_agentd.d/*.conf UnsafeUserParameters1 3、编写模板文件 ​ vim /etc/zabbix/zabbix_agentd.d/template_db_mysql.conf#template_db_mysql.conf created by Zabbix for Template DB MySQL and Zabbix 4.2 #For OS Linux: You need create .my.cnf in zabbix-agent home directory (/var/lib/zabbix by default)  #For OS Windows: You need add PATH to mysql and mysqladmin and create my.cnf in %WINDIR%\my.cnf,C:\my.cnf,BASEDIR\my.cnf https://dev.mysql.com/doc/refman/5.7/en/option-files.html #The file must have three strings: #[client] #userzbx_monitor #passwordpassword # UserParametermysql.ping[*], mysqladmin -h$1 -P$2 ping UserParametermysql.get_status_variables[*], mysql -h$1 -P$2 -sNX -e show global status UserParametermysql.version[*], mysqladmin -s -h$1 -P$2 version UserParametermysql.db.discovery[*], mysql -h$1 -P$2 -sN -e show databases UserParametermysql.dbsize[*], mysql -h$1 -P$2 -sN -e SELECT COALESCE(SUM(DATA_LENGTH INDEX_LENGTH),0) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA$3 UserParametermysql.replication.discovery[*], mysql -h$1 -P$2 -sNX -e show slave status UserParametermysql.slave_status[*], mysql -h$1 -P$2 -sNX -e show slave status​ 4、创建mysql用户并赋权限 CREATE USER zbx_monitor% IDENTIFIED BY 123456; GRANT REPLICATION CLIENT,PROCESS,SHOW DATABASES,SHOW VIEW ON *.* TO zbx_monitor%; 5、创建.my.cnf文件 mkdir -p /var/lib/zabbix vim /var/lib/zabbix/.my.cnf[client] userzbx_monitor password123456 6、将规则添加到SELinux策略中 systemctl edit zabbix-agent.service# cat EOF zabbix_home.te module zabbix_home 1.0;require {type zabbix_agent_t;type zabbix_var_lib_t;type mysqld_etc_t;type mysqld_port_t;type mysqld_var_run_t;class file { open read };class tcp_socket name_connect;class sock_file write; }# zabbix_agent_t allow zabbix_agent_t zabbix_var_lib_t:file read; allow zabbix_agent_t zabbix_var_lib_t:file open; allow zabbix_agent_t mysqld_etc_t:file read; allow zabbix_agent_t mysqld_port_t:tcp_socket name_connect; allow zabbix_agent_t mysqld_var_run_t:sock_file write; EOF # checkmodule -M -m -o zabbix_home.mod zabbix_home.te # semodule_package -o zabbix_home.pp -m zabbix_home.mod # semodule -i zabbix_home.pp # restorecon -R /var/lib/zabbix 注意 若模板无法读取.my.cnf 信息从而导致监控报错可以尝试修改模板配置配置文件 #template_db_mysql.conf created by Zabbix for Template DB MySQL and Zabbix 4.2 #For OS Linux: You need create .my.cnf in zabbix-agent home directory (/var/lib/zabbix by default) #For OS Windows: You need add PATH to mysql and mysqladmin and create my.cnf in %WINDIR%\\my.cnf,C:\\my.cnf,BASEDIR\\my.cnf https://dev.mysql.com/doc/refman/5.7/en/option-files.html #The file must have three strings: #[client] #userzbx_monitor #passwordpassword # UserParametermysql.ping[*], mysqladmin --defaults-extra-file/var/lib/zabbix/.my.cnf -h$1 -P$2 ping UserParametermysql.get_status_variables[*], mysql --defaults-extra-file/var/lib/zabbix/.my.cnf -h$1 -P$2 -sNX -e show global status UserParametermysql.version[*], mysqladmin --defaults-extra-file/var/lib/zabbix/.my.cnf -h$1 -P$2 version UserParametermysql.db.discovery[*], mysql --defaults-extra-file/var/lib/zabbix/.my.cnf -h$1 -P$2 -sN -e show databases UserParametermysql.dbsize[*], mysql --defaults-extra-file/var/lib/zabbix/.my.cnf -h$1 -P$2 -sN -e SELECT COALESCE(SUM(DATA_LENGTH INDEX_LENGTH),0) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA$3 UserParametermysql.replication.discovery[*], mysql --defaults-extra-file/var/lib/zabbix/.my.cnf -h$1 -P$2 -sNX -e show slave status UserParametermysql.slave_status[*], mysql --defaults-extra-file/var/lib/zabbix/.my.cnf -h$1 -P$2 -sNX -e show slave status
http://www.hkea.cn/news/14395583/

相关文章:

  • 乐清建站公司哪家好100个最全的免费网站
  • 怎样建设相亲网站wordpress the author
  • 高校网站首页设计有名的公关公司
  • 南昌网站排名推广门户类网站备案
  • 做游戏都需要什么网站吗好用的网站模板
  • 网站建设教程答允苏州久远网络网站换服务器怎么做备份
  • 网站建设平台合同模板下载cms开发网
  • 分销商城网站开发东莞外贸网站建设哪家好
  • 国外市场网站推广公司卖钢材做哪个宣传网站
  • 网站建设需要的技术奉节网站建设公司
  • 怎么在门户网站上发布怎么查一个网站的外链和反链软件
  • 如何查看网站外链一站式服务就像一个什么
  • 做图表的网站 免费注册企业管理咨询服务公司
  • 网站不备案可以做淘宝联盟吗海口网络平台网站开发
  • 江西中企动力做的网站下载安装注册app
  • 网站开发的售后 维保怎样攻击网站
  • 做哪种网站流量大辽宁建设工程信息网诚信库怎么入库
  • 网站怎么做引流呢建设网站域名的选择
  • 网站营销策略有哪些dnf做心悦宠物的网站
  • 做网站流量怎么赚钱昆山网站建设及推广
  • 免费建设网站哪个好树莓派装wordpress
  • 网站租用服务器多少钱WordPress网站积分系统
  • 赣州做网站公司哪家好手机可以制作游戏软件有哪些
  • 制作表白网站教程网站建设项目售后服务承诺
  • 卡盟网站建设公司做跨境电商的血泪教训
  • 广东平台网站建设哪家好深圳福田最大网站公司
  • 免费商用的网站模板网站智能建设系统源码
  • 石碣镇做网站上海企业建设网站
  • 网站建设市场需求大网站直播的功能怎样做
  • 0基础自学做网站比较好的设计欣赏网站