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

个人如何做一个网站网页设计编辑器

个人如何做一个网站,网页设计编辑器,网站建设三个阶段,数据库做图书管理系统网站在数据库系统交付、迁移或上线前,执行基线核查对于保障环境稳定、安全和高效至关重要。本文基于mysql标准化实践,从操作系统层与数据库层两个维度,详尽梳理了 MySQL 的关键基线项配置方法及对应命令与预期输出,适用于运维工程师、…

在数据库系统交付、迁移或上线前,执行基线核查对于保障环境稳定、安全和高效至关重要。本文基于mysql标准化实践,从操作系统层与数据库层两个维度,详尽梳理了 MySQL 的关键基线项配置方法及对应命令与预期输出,适用于运维工程师、DBA、交付工程师等技术人员作为参考与操作手册。

一、操作系统层基线核查(Linux)

1. 磁盘空间

检查命令:

df -hP
df -i

预期输出:

数据库数据目录所在磁盘及 / 根目录的 Use% 小于 85%,inode 使用率合理,避免空间瓶颈。

2. NetworkManager 状态

CentOS 6 检查与禁用命令:

chkconfig --list NetworkManager
service NetworkManager stop
chkconfig NetworkManager off

CentOS 7 检查与禁用命令:

systemctl status NetworkManager.service
systemctl stop NetworkManager.service
systemctl disable NetworkManager.service

预期输出示例:

CentOS 6:

NetworkManager 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭

CentOS 7:

Active: inactive (dead)

3. 防火墙状态

CentOS 6 命令:

chkconfig --list iptables
chkconfig --list ip6tables
service iptables stop
chkconfig iptables off
chkconfig ip6tables off

CentOS 7 命令:

systemctl status firewalld.service
systemctl stop firewalld.service
systemctl disable firewalld.service

预期输出示例:

firewalld.service - dynamic firewall daemon
Active: inactive (dead)

4. Selinux 配置

检查与禁用命令:

more /etc/selinux/config
getenforce
sed -i "s/SELINUX=.*/SELINUX=disabled/g" /etc/selinux/config
setenforce 0

预期输出:

配置文件中的 SELINUX=disabled,当前状态为 PermissiveDisabled

5. 系统资源限制

配置文件路径:

/etc/security/limits.conf

推荐配置内容:

* soft nofile 65536
* hard nofile 65536
* soft nproc 16384
* hard nproc 16384

6. PAM 模块配置

修改文件:

/etc/pam.d/login

添加内容:

session required pam_limits.so

7. 系统与数据库时区一致性

命令:

date -R
mysql> show global variables like 'system_time_zone';

预期输出:

操作系统与 MySQL 的时区设置保持一致,例如均为 CST+08:00

设置方法:

set time_zone = '+08:00';

8. 安装数据库依赖包

命令:

yum -y install gcc* gcc-c++ libaio-devel* libgcrypt

预期输出:

安装无报错,依赖包完整。

9. NUMA 禁用

检查命令:

grep -i numa /var/log/dmesg

预期输出示例:

NUMA turned off
numa=off

禁用命令:

grubby --args="numa=off" --update-kernel $(grubby --default-kernel)
reboot

二、数据库层基线核查(MySQL)

1. 定时备份任务配置

检查命令(Linux):

crontab -l

预期输出:

存在定时调用 mysqldump 等逻辑备份脚本的计划任务。

2. 会话连接参数

检查命令:

show global variables where variable_name in ('max_connections','max_user_connections','wait_timeout','interactive_timeout','connect_timeout');
show global status where variable_name in ('Max_used_connections');

预期输出示例:

max_connections = 5000
Max_used_connections = 600

推荐设置命令:

set global max_connections=5000;
set global max_user_connections=4000;
set global max_connect_errors=50000;
set global wait_timeout=7200;
set global interactive_timeout=7200;
set global connect_timeout=10;

3. Binlog 与 GTID 配置

检查命令:

show global variables where variable_name in ('log_bin','binlog_format','gtid_mode','enforce_gtid_consistency','expire_logs_days');

预期输出:

log_bin = ON
binlog_format = ROW
gtid_mode = ON
enforce_gtid_consistency = ON

设置命令(需已开启 binlog):

set global binlog_format='ROW';
set global gtid_mode=ON;
set global enforce_gtid_consistency=ON;
set global expire_logs_days=7;

4. 强一致性模式(双一模式)

检查命令:

show global variables where variable_name in ('sync_binlog','innodb_flush_log_at_trx_commit');

预期输出:

sync_binlog = 1
innodb_flush_log_at_trx_commit = 1

设置命令:

set global sync_binlog=1;
set global innodb_flush_log_at_trx_commit=1;

5. Redo 日志文件参数

检查命令:

show global variables where variable_name in ('innodb_log_file_size','innodb_log_files_in_group');

推荐配置(需重启生效):

innodb_log_file_size = 1048576000
innodb_log_files_in_group = 3

6. 缓存参数优化

命令:

show global variables where variable_name in ('sort_buffer_size','join_buffer_size','max_allowed_packet');

推荐设置:

set global sort_buffer_size=720896;
set global join_buffer_size=360448;
set global max_allowed_packet=1073741824;

7. 临时表缓存参数

命令:

show global variables where variable_name in ('max_heap_table_size','tmp_table_size');

推荐设置:

set global max_heap_table_size=16777216;
set global tmp_table_size=16777216;

8. InnoDB 缓冲池大小

命令:

show global variables where variable_name='innodb_buffer_pool_size';
free -h

推荐配置:

缓冲池大小为物理内存的 50% 至 80%,例如:

set global innodb_buffer_pool_size=134217728;

9. 事务隔离级别

检查命令:

show global variables where variable_name='transaction-isolation';

推荐配置:

set global transaction-isolation='READ-COMMITTED';

10. 字符集设置

检查命令:

show global variables where variable_name='character_set_server';

推荐配置:

set global character_set_server='utf8mb4';

11. 表名大小写敏感控制(需重启)

检查命令:

show global variables where variable_name='lower_case_table_names';

推荐配置:

在配置文件 my.cnf 中设置:

lower_case_table_names=1

12. 用户安全性核查

命令:

select user,host from mysql.user where authentication_string=password(user);

预期输出:

无用户名密码一致的账户。若存在,需及时修改用户密码。

总结

本基线核查清单涵盖 MySQL 在交付部署过程中需要重点关注的系统与数据库参数配置,确保环境符合最佳实践与安全要求。建议将核查内容固化为标准化流程,纳入 CMDB 自动化扫描或数据库上线前检查清单中。

IMG_6768 2.jpg
hhh6.jpg


文章转载自:

http://Oc6stdIC.tdnbw.cn
http://AHVqxfeQ.tdnbw.cn
http://4A5omLKP.tdnbw.cn
http://EEyOs9kt.tdnbw.cn
http://O6Y0D4Yz.tdnbw.cn
http://x3x7wLs5.tdnbw.cn
http://aivxfBVJ.tdnbw.cn
http://JCQQdCyD.tdnbw.cn
http://Av6yssXw.tdnbw.cn
http://zLyOyy1Y.tdnbw.cn
http://aZlHRivb.tdnbw.cn
http://aPBCnUCM.tdnbw.cn
http://sEWde54Q.tdnbw.cn
http://jamUd2lF.tdnbw.cn
http://RpHpopof.tdnbw.cn
http://3Vbss2jz.tdnbw.cn
http://EPCZ48E3.tdnbw.cn
http://RU0ITjlZ.tdnbw.cn
http://76Lfpr84.tdnbw.cn
http://6byXToVf.tdnbw.cn
http://UyvTIy9j.tdnbw.cn
http://tEaGtZ1S.tdnbw.cn
http://MsQFEP9I.tdnbw.cn
http://IC2rQOe4.tdnbw.cn
http://yPk3uZMe.tdnbw.cn
http://xO4WdaU7.tdnbw.cn
http://DAii892s.tdnbw.cn
http://9ppsBygX.tdnbw.cn
http://HHcX55Dx.tdnbw.cn
http://zpl12ceO.tdnbw.cn
http://www.dtcms.com/wzjs/625148.html

相关文章:

  • 做网站应该用什么配置的电脑wap网站开发工具
  • 网站改版需要多久开一个做网站的公司
  • 网站建设的行业资讯_为什么平面设计最后都转行了
  • 企业网站开发平台网站底部关键词指向
  • 杭州建设招聘信息网站伪静态一个虚拟空间做两个网站
  • 招聘网站费用怎么做分录wordpress邮件key
  • 天津定制网站建设公司网站开发使用的开发工具
  • 那个网站做3d高权重网站出售
  • 重庆做商城网站设计郑州做网站托管
  • 深圳高端网站设计建设网站主页面设计模板
  • 做外贸怎样上外国网站wordpress视频教程百度云
  • 国外网站怎么建设如何用dw做网站首页
  • 南昌建站系统外包自适应网站设计稿
  • 国内网站绕过备案方法网站建设套定额
  • 简单的网站建设合同书北京网站定制流程
  • 上海网站托管永久免费crm都有什么
  • 台州市网站制作网络广告营销的概念
  • 旅游网站系统建设方案做同城购物网站
  • 广东做网站策划做竞价推广大概多少钱
  • 在线logo制作网站wordpress 换行符
  • a站播放量最高的视频架设网站服务器
  • 深圳做网站联雅新网站开发
  • 现代电子商务网站建设技术文化旅游做的好的网站
  • 阿里云建设网站教程自建网站推广
  • 整站优化多少钱新品发布会现场
  • 下列关于wap手机网站建网站的专业公司
  • 在什么网站做推广最好印刷网站开发策划书
  • 网站做app的软件有哪些用于网站开发的语言
  • 移动端网站制作模板网站说说模板.
  • wordpress网站生成app应用工程信息网站谁做