Loading

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 33 下一页
摘要: #!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin echo " PCPU " ps -eo user,pid,pcpu,pmem,args --sort=-pcpu | head - 阅读全文
posted @ 2021-04-24 20:07 云起时。 阅读(163) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin function cpu() { util=`vmstat | awk 'NR==3 {print (100-$15) "%"}'` 阅读全文
posted @ 2021-04-24 20:06 云起时。 阅读(226) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin USER_LIST=$@ # USER_LIST=(user01 user02 user03) USER_FILE=./user.t 阅读全文
posted @ 2021-04-24 20:04 云起时。 阅读(195) 评论(0) 推荐(0) 编辑
摘要: # yum install mailx -y # vim /etc/mail.rc set from=hyjy2504164765@163.com smtp=smtp.163.com set smtp-auth-user=hyjy2504164765@163.com smtp-auth-passwo 阅读全文
posted @ 2021-04-24 20:02 云起时。 阅读(69) 评论(0) 推荐(0) 编辑
摘要: #/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin # 更改主机名 # hostnamectl set-hostname <hostname> # 隐藏服务器版本 > /etc/issu 阅读全文
posted @ 2021-04-24 20:00 云起时。 阅读(119) 评论(0) 推荐(0) 编辑
摘要: kubeadm是官方社区推出的一个用于快速部署kubernetes集群的工具。 这个工具能通过两条指令完成一个kubernetes集群的部署: # 创建一个 Master 节点$ kubeadm init​# 将一个 Node 节点加入到当前集群中$ kubeadm join <Master节点的I 阅读全文
posted @ 2021-04-24 19:43 云起时。 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Kubernetes是Google在2014年开源的一个容器集群管理系统,Kubernetes简称K8S。 Kubernetes用于容器化应用程序的部署,扩展和管理,目标是让部署容器化应用简单高效。 官方网站:http://www.kubernetes.io 2.1 Kubernetes集群架构与组 阅读全文
posted @ 2021-04-24 19:41 云起时。 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1 环境说明 2 CICD DevOps介绍 3 安装jenkins 在 172.16.1.121 节点上操作 Jenkins官方文档地址:https://www.jenkins.io/download/ 3.1 配置jenkins yum源 3.2 安装 由于是国外的源安装可能会很慢,可以下载阿里 阅读全文
posted @ 2021-04-18 18:24 云起时。 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 40.1 waf说明1 WAF(Web Application Firewall),中文名叫做“Web应用防火墙”。2 WAF的定义是这样的:Web应用防火墙是通过执行一系列针对HTTP/HTTPS的安全策略来专门为Web应用提供保护的一款产品。3 通过从上面对WAF的定义中,我们可以很清晰地了解到 阅读全文
posted @ 2021-04-10 19:59 云起时。 阅读(1145) 评论(0) 推荐(0) 编辑
摘要: 问题描述 服务器磁盘单盘空间大于2TB,在安装CentOS7时出现下图报错: Boot failure.Reboot and Select proper Boot device... 问题原因: 安装CentOS 7时,如果硬盘容量小于2TB,系统默认会使用 MBR格式来安装。如果大于2TB则需要使 阅读全文
posted @ 2020-05-15 02:16 云起时。 阅读(1835) 评论(0) 推荐(0) 编辑
摘要: 操作系统:Centos7 说明:postgresql必须在postgres用户下初始化数据库和启动,否则报错。 PostgreSQL的特性 PostgreSQL是一种几乎可以运行在各种平台上的免费的开放源码的对象关系数据库管理系统,拥有与企业级数据库相媲美的特性,如完善的SQL标准支持、多版本并发控 阅读全文
posted @ 2020-05-13 00:41 云起时。 阅读(1254) 评论(0) 推荐(0) 编辑
摘要: 31.1、监控磁盘: #!/bin/sh diskspace="`df -hT`" IFS="\n" disk_value="80" echo "文件系统 类型 容量 已用 可用 已用% 挂载点" for line in $diskspace;do disk=`echo $line | awk -v 阅读全文
posted @ 2020-05-01 13:47 云起时。 阅读(538) 评论(0) 推荐(1) 编辑
摘要: 30.1、php-fpm.conf参数优化:[global]pid = run/php-fpm.pid#php后台运行pid路径error_log = log/php-fpm.log#php的错误日志路径rlimit_files = 65535#php打开文件的描述符大小[www]user = nginx#php所使用的虚拟用户group = nginx#php所使用的虚拟用户组listen = ... 阅读全文
posted @ 2020-04-27 00:06 云起时。 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 1.1、测试环境说明:Linux版本:7.6IP地址:10.11.220.123/24Tomcat版本:tomcat-8.5.37(端口号为8080)Jdk版本:1.8.0_2021.2、配置tomcat server.xml 文件(Engine组件,标红的部分是需要修改的内容): --> ... 阅读全文
posted @ 2020-04-24 22:47 云起时。 阅读(1849) 评论(0) 推荐(1) 编辑
摘要: 问题描述 连接ECS实例中的应用时偶尔出现丢包现象。经排查,ECS实例的外围网络正常,但内核日志(dmesg)中存在“kernel: nf_conntrack: table full, dropping packet”的错误信息。存在此问题的ECS实例符合如下条件。 镜像:aliyun-2.1903 阅读全文
posted @ 2020-04-19 18:30 云起时。 阅读(424) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 33 下一页