返回顶部

pzzning

导航

2018年6月19日 #

Linux命令行获取本机外网IP地址

摘要: 问题: 服务器地址为net映射地址,本机ifconfig无法直接获取映射的公网地址。 方法: 其他网址访问: 阅读全文

posted @ 2018-06-19 14:21 pzzning 阅读(5537) 评论(0) 推荐(0) 编辑

2018年4月24日 #

yum-本地源配置(CentOS7)

摘要: 一、挂载ISO文件: 服务器版本查看:# cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core) 1、ISO镜像下载网站:网易镜像: http://mirrors.163.com/阿里镜像: https://opsx.alibaba. 阅读全文

posted @ 2018-04-24 17:27 pzzning 阅读(1694) 评论(0) 推荐(0) 编辑

2018年4月22日 #

yum-阿里源配置

摘要: 原文:https://opsx.alibaba.com/mirrorCentOS 1、备份 2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/ CentOS 5 CentOS 6 CentOS 7 3、之后运行yum makecache生成缓存 阅读全文

posted @ 2018-04-22 21:49 pzzning 阅读(1517) 评论(0) 推荐(0) 编辑

2018年4月14日 #

yum-163源配置

摘要: 原文:http://mirrors.163.com/.help/centos.html CentOS镜像使用帮助 收录架构 i386 x86_64 SRPMS 收录版本:所有版本更新时间:每4小时更新一次 使用说明:1、首先备份/etc/yum.repos.d/CentOS-Base.repo 2、 阅读全文

posted @ 2018-04-14 15:59 pzzning 阅读(224) 评论(0) 推荐(0) 编辑

2018年4月11日 #

佛祖保佑,永不死机 - /etc/motd文件配置

摘要: /etc/motd (message of to day:每日信息) 一、执行命令: 二、效果图:(服务器重新连接) 阅读全文

posted @ 2018-04-11 17:30 pzzning 阅读(1882) 评论(0) 推荐(1) 编辑

2018年3月20日 #

程服务器负载异常处理

摘要: 1、内存告警 2、查看负载: 3、top: 4、pstree 5、df -i 查看为inodes空间满 6、关闭sendmail进程 7、清除占用inodes的垃圾文件,服务器恢复正常 阅读全文

posted @ 2018-03-20 16:07 pzzning 阅读(226) 评论(0) 推荐(0) 编辑

2018年2月24日 #

logrotate 日志切割工具

摘要: 相关原理参见:https://www.cnblogs.com/sailrancho/p/4784763.html 一、相关目录: 程序:/usr/sbin/logrotate配置:/etc/logrotate.conf 和/etc/logrotate.d/ 和 crontab 耦合: /etc/cr 阅读全文

posted @ 2018-02-24 10:31 pzzning 阅读(251) 评论(0) 推荐(0) 编辑

2017年12月15日 #

linux 查看、关闭 ssh pts/n登录的用户

摘要: 1、查看登录用户: 2、通知用户: 3、关闭用户连接: 阅读全文

posted @ 2017-12-15 16:06 pzzning 阅读(10754) 评论(0) 推荐(1) 编辑

2017年8月24日 #

网站归属地查询方法

摘要: 1、脚本用途 给出一个URL,自动获取URL对应IP,以及IP所属归属地。 2、脚本使用准备: a、nslookup命令安装: b、具有访问公网权限。 3、脚本使用方法: 4、脚本内容: 阅读全文

posted @ 2017-08-24 17:07 pzzning 阅读(5640) 评论(0) 推荐(0) 编辑

2017年8月23日 #

操作系统、内核版本查询

摘要: 1、操作系统版本方法1:lsb_release -a 方法2:cat /etc/issue 操作系统版本为:CentOS Linux release 6.0 (Final) 2、内核版本方法1:uname -a 方法2:cat /proc/version 内核版本为:2.6.32-71.el6.x8 阅读全文

posted @ 2017-08-23 16:26 pzzning 阅读(483) 评论(0) 推荐(0) 编辑