随笔分类 -  centos7-系统

centos7系统
摘要:centos7 sqlite-安装升级编译安装 ###升级-编译安装 wget https://www.sqlite.org/2019/sqlite-autoconf-3290000.tar.gz tar zxvf sqlite-autoconf-3290000.tar.gz cd sqlite-a 阅读全文
posted @ 2022-08-04 11:41 tangshow 阅读(166) 评论(0) 推荐(0) 编辑
摘要:#####安装 yum install snapd systemctl enable --now snapd.socket ln -s /var/lib/snapd/snap /snap snap install core snap refresh core snap install --class 阅读全文
posted @ 2022-07-21 13:52 tangshow 阅读(262) 评论(0) 推荐(0) 编辑
摘要:传统的MBR分区表格式,仅支持最大四个主分区,而且不可以格式化2TB以上的磁盘,因此,大磁盘更适合使用parted工具进行GPT的分区格式。 执行lsblk查看磁盘情况 执行parted开始分区 格式化 mkfs.xfs /dev/sda1 #####挂载 创建挂载点 mkdir /recordin 阅读全文
posted @ 2022-06-16 15:50 tangshow 阅读(640) 评论(0) 推荐(0) 编辑
摘要:prometheus监控系统搭建 其他参考https://blog.csdn.net/weixin_43815140/article/details/119730821 ###服务端安装 >服务端使用docker部署prometheus、grafana #####准备文件 mkdir -p /dat 阅读全文
posted @ 2022-06-14 15:36 tangshow 阅读(314) 评论(0) 推荐(0) 编辑
摘要:######安装 yum update -y yum groupinstall Xfce yum groupinstall "X Window system" systemctl isolate graphical.target ######查看语言 cat /etc/locale.conf ### 阅读全文
posted @ 2022-05-31 10:36 tangshow 阅读(231) 评论(0) 推荐(0) 编辑
摘要:centos7系统常用操作集合 ###查看类 查看内核 uname -a 查看ip ip addr ###文件操作类 tar 打包 tar -cvf 归档路径 被打包文件路径 tar -zcvf 归档路径 被打包路径 tar -jcvf 归档路径 被打包路径 tar解压 tar -xvf xx.ta 阅读全文
posted @ 2022-05-09 15:06 tangshow 阅读(121) 评论(0) 推荐(0) 编辑
摘要:linux centos7上程序提示too many open files或者网络连接数1000左右上不去客户在线数1000左右上不去 ###显现描述: centso7系统的上的某wss服务故障,当客户端在线数量达到1k左右,打开浏览器调试,刷新页面后wss消息一直pending中 wss服务日志提 阅读全文
posted @ 2022-05-09 15:04 tangshow 阅读(442) 评论(0) 推荐(0) 编辑
摘要:######安装mysqlrouter 创建目录: mkdir -p /etc/mysqlrouter cd /etc/mysqlrouter 下载mysql-router wget https://cdn.mysql.com/archives/mysql-router/mysql-router-8 阅读全文
posted @ 2022-05-09 14:59 tangshow 阅读(370) 评论(0) 推荐(0) 编辑
摘要:centos7安装odbc并使用MySQLroute连接数据库 ######安装配置mysqlroute 参考:centos7安装配置mysqlroute https://www.cnblogs.com/tangshow/p/16249271.html ######安装odbc yum instal 阅读全文
posted @ 2022-05-09 14:51 tangshow 阅读(332) 评论(0) 推荐(0) 编辑
摘要:关闭selinux 做转发时 有可能nginx报权限错误,需关闭selinux setenforce 0 sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config;cat /etc/selinux/config 添加yum源 阅读全文
posted @ 2022-04-24 10:40 tangshow 阅读(136) 评论(0) 推荐(0) 编辑
摘要:linux磁盘故障,可能由于异常断电导致主机一块磁盘故障,该盘用于gluster存储,由于gluster使用了多副本配置,掉一个盘不影响使用,最近才发现。 ####问题表现 1. 尝试查看磁盘内文件 ll /mnt 提示cannot access /mnt/: Input/output error 阅读全文
posted @ 2022-02-23 14:31 tangshow 阅读(684) 评论(0) 推荐(0) 编辑
摘要:机器新填了块旧硬盘,需要格式化重新分区,并挂载使用 ####fdisk和parted区别 fdisk只能分2T的磁盘,最大主分区只有2T,parted没有这个限制 https://blog.csdn.net/weixin_38889300/article/details/122593162 #### 阅读全文
posted @ 2022-02-22 17:17 tangshow 阅读(6639) 评论(0) 推荐(0) 编辑
摘要:####修改默认ssh端口 https://www.cnblogs.com/tangshow/p/15882408.html ####修改ssh空闲时间 https://www.cnblogs.com/tangshow/p/15882408.html ####防ddos 见ddos表 ####中断指 阅读全文
posted @ 2022-02-21 14:22 tangshow 阅读(35) 评论(0) 推荐(0) 编辑
摘要:在 centos7上使用crontab定时任务,自动定时执行脚本 ####添加/编辑 Crontab crontab -e crontab [-u username] -e 默认情况下,系统会编辑当前用户的crontab命令集合 ####查看Crontab crontab -l crontab [- 阅读全文
posted @ 2022-02-21 14:09 tangshow 阅读(2284) 评论(0) 推荐(0) 编辑
摘要:CentOS7 /根目录空间不足,/home目录空间剩余较多。现需要将/home的空闲空间,分配给/。 基础知识:linux /dev/mapper目录浅谈 https://www.cnblogs.com/amoyzhu/p/6626423.html ####0 环境 系统centos7,安装时使用 阅读全文
posted @ 2022-02-21 11:22 tangshow 阅读(3447) 评论(1) 推荐(0) 编辑
摘要:centos7系统内核升级到最新的kernel-ml5.x ##准备 ######查看系统版本 cat /etc/redhat-release ######看当前操作系统版本信息 cat /proc/version ######查看版本当前操作系统内核信息 uname -a 输出 Linux 140 阅读全文
posted @ 2022-02-11 11:22 tangshow 阅读(690) 评论(0) 推荐(0) 编辑
摘要:富规则官方文档 https://firewalld.org/documentation/man-pages/firewalld.richlanguage.html 可表达firewalld的基本语法中未涵盖的自定义防火墙规则 ####语法 [source] [destination] service 阅读全文
posted @ 2022-02-11 10:23 tangshow 阅读(3741) 评论(0) 推荐(0) 编辑
摘要:####系统操作 加入开机启动 systemctl enable firewalld 启、停 systemctl start firewalld systemctl stop firewalld 重启、重载 systemctl restart firewalld firewall-cmd --rel 阅读全文
posted @ 2022-02-11 10:14 tangshow 阅读(152) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示