记录关于Devops运维,虚拟化容器云计算,数据库,网络安全等各方面问题。
zabbix 磁盘I/O监控磁盘I/O监控参数指标.以下是最方便的方法也可以直接将以上写成shell脚本,然后直接在1.zabbix_conf中只写一行,2.重启服务.UserParameter=custom.vfs.dev.read.ops[*],cat /proc/diskstats | grep $1 | head -1 | awk ‘{print $$4}’UserParameter=custom.vfs.dev.read.ms[*],cat /proc/diskstats | grep $1 | head -1 | awk ‘{print $$7}’UserParameter=custom.vfs.dev.write.ops[*],cat /proc/diskstats | grep $1 | head -1 | awk ‘{print $$8}’UserParameter=custom.vfs.dev.write.ms[*],cat /proc/diskstats | grep $1 | head -1 | awk ‘{print $$11}’UserParameter=custom.vfs.dev.io.active[*],cat /proc/diskstats | grep $1 | head -1 | awk ‘{print $$12}’UserParameter=custom.vfs.dev.io.ms[*],cat /proc/diskstats | grep $1 | head -1 | awk ‘{print $$13}’UserParameter=custom.vfs.dev.read.sectors[*],cat /proc/diskstats | grep $1 | head -1 | awk ‘{print $$6}’UserParameter=custom.vfs.dev.write.sectors[*],cat /proc/diskstats | grep $1 | head -1 | awk ‘{print $$10}’调试监控配置是否生效.zabbix_get -<span...
zabbix监控tcp连接数,同样是利用强大的UserParameter自定义功能,步骤也非常简单1在客户端zabbix_agentd.conf里添加UserParameter=TCPCon,/opt/zabbix/bin/zabbix_tcp.sh简单点写个脚本/opt/zabbix/binzabbix_tcp.sh里面内容#!/bin/bashnetstat -s|grep “connections established”|sed ‘s/ //g’|cut -d’c’ -f12.在服务端添加TCPCon作为key就可以了
ubuntu设置ip与DNS 查看IPifconfig设置ipvim /etc/network/interfaces输入内容auto loiface lo inet loopbackauto eth0iface eth0 inet staticaddress 192.168.200.220netmask 255.255.255.0gateway 192.168.200.1重启网络/etc/init.d/networking restartUbuntu 修改IP地址 1、ubuntu系统修改IP地址:sudo gedit /etc/network/interfacesauto eth0iface eth0 inet staticaddress 219.218.122.168netmask 255.255.255.0gateway 219.218.122.2542、ubuntu系统修改DNS: sudo gedit /etc/resolv.confnameserver 202.194.15.123、使网络生效:sudo /etc/init.d/networking restartUbuntu8.04虚拟机更换host主机后开机无法加载网卡,提示:No such device删除缓存文件,重启后解决。sudo rm /etc/udev/rules.d/70-persistent-net.rulesreboot
linux系统时间修改及同步时间修改date 月日时分年.秒date -s可以直接设置系统时间 比如将系统时间设定成1996年6月10日的命令如下。#date -s 06/10/96将系统时间设定成下午1点12分0秒的命令如下。#date -s 13:12:00时间同步1.首先需了解linux内一任务计划工具crontabcrontab可以定时去执行你要做的动作直接用crontab命令编辑crontab -u //设定某个用户的cron服务,一般root用户在执行这个命令的时候需要此参数crontab -l //列出某个用户cron服务的详细内容crontab -r //删除某个用户的cron服务crontab -e //编辑某个用户的cron服务一般使用crontab -e来编辑一个计划动作,编辑模式同vi编辑器相同crontab内的基本编辑格式如下* * * * * command分 时 日 月 周 命令第1列表示分钟1~59 每分钟用*或者 */1表示第2列表示小时1~23(0表示0点)第3列表示日期1~31第4列表示月份1~12第5列标识号星期0~6(0表示星期天)第6列要运行的命令crontab文件的一些例子:30 21 * * * /etc/init.d/smb restart上面的例子表示每晚的21:30重启smb 。45 4 1,10,22 * * /etc/init.d/smb restart上面的例子表示每月1、10、22日的4 : 45重启smb 。10 1 * * 6,0...
Linux 或是xenserver 硬盘分区后,如何识别设备文件Linux 系统可以使用以下命令:partprobe,英语字面意思是分区探测,这个命令可以使操作系统不需要重启而使新的磁盘分区生效。默认位置/sbin/partprobe。相关命令:parted.实际使用过程中,有时会报告警告信息,没有成功更新分区信息。partprobe -sWarning: WARNING: the kernel failed to re-read the partition table on /dev/sda (Device or resource busy). As a result, it may not reflect all of your changes until after reboot.Xenserver 系统没有partprobe 命令。可以使用 以下命令:[root@xenserve-251 ~]# partx /dev/sdb# 1: 63-976768064 (976768002 sectors, 500105 MB)# 2: 0- -1 ( 0 sectors, 0 MB)# 3: 0- -1 ( 0 sectors, &nb...
centos 6推荐使用epel源 在dell r410上面装的是centos6,64的操作系统,用的163的源,我一直都是用163的源,比较快。但是我发现这个源里面,根本没有libmcrypt libmcrypt-devel这二个包,装php扩展mcrypt时,又要用到这二个包,所以我手动装了libmcrypt包,但是给我的感觉是163源中的包不全。后来有一个朋友告诉我用epel,用了之后感觉很爽。一,什么是epel如果既想获得 RHEL 的高质量、高性能、高可靠性,又需要方便易用(关键是免费)的软件包更新功能,那么 Fedora Project 推出的 EPEL(Extra Packages for Enterprise Linux)正好适合你。EPEL(http://fedoraproject.org/wiki/EPEL) 是由 Fedora 社区打造,为 RHEL 及衍生发行版如 CentOS、Scientific Linux 等提供高质量软件包的项目。二,使用心得1,不用去换原来yum源,安装后会产生新repo2,epel会有很多源地址,如果一个下不到,会去另外一个下http://mirror.xfes.ru/fedora-epel/6/x86_64/ibus-table-chinese-scj-1.3.4-1.el6.noarch.rpm: [Errno 14] PYCURL ERROR 6 - ""Trying other mirror.http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/ibus-table-chinese-scj-1.3.4-1.el6.noarch.rpm: [...
simple-log 1.6 官网下载博客程序升级后。上传与图片功能不能正常使用。上传图片 报错如下:dmin.php?act=upload&type=img 上传接口发生错误!返回的错误内容为: Parse error: syntax error, unexpected T_IF in /www/web/92cto_com/public_html/admin/includes/upload.php on line 1解决方式:使用 notepad++ 打开文件,然后转换成 windows 格式就可以正常使用了。如下图:
apache 日志报以下错误提示:NoCase option for non-regex pattern '-f' is not supported and will be ignored[Sat Jul 11 23:06:22 2009] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.[Sat Jul 11 23:06:22 2009] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.[Sat Jul 11 23:06:23 2009] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.[Sat Jul 11 23:06:23 2009] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.[Sat Jul 11 23:06:24 2009] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.是不是静态化哪里有什么问题呢?网站一直运行正常,就是常出现这些错误日志试试在根目录下的 .htaccess 文件中,将RewriteCond %{REQUEST_FILENAME} !-f [NC] 改为RewriteCond %{REQUEST_FILENAME} !-f [OR]
9月24日,Linux人社区发行版Qomo Linux 4.0 Beta版对外发布,这是自Qomo3.1版本后,Qomo 团队经历数月密集开发,从底层结构开始重新构筑的全新社区发行版。未来,在此版本的基础上,只要用户保持升级,就可以得到最新的系统,而无需重装。同时,Qomo的软件仓库也将划分为三个层级,按照稳定性逐步合并,确保用户系统的稳定性。Qomo Linux 4.0 Beta版采用了最新稳定版的内核版本,硬件驱动更加丰富。在3.1的基础上,全面采用了systemd机制,开机速度更快,同时提供systemctl命令行自动补全功能。采用了KDE 4.9稳定版本,新版本的KDE增强了稳定性和性能,带来了许多新的特性,默认输入法为Linux下好评度最高的ibus-sunpinyin。除了提供KDE的桌面环境,Qomo Linux首次发布了Gnome的版本,提供了对Gnome桌面环境的支持,采用Gnome 3.4.2版本,为用户提供了更多一种的选择。未来,Qomo Linux将根据社区的用户需求,增加对更多桌面环境的支持。Qomo Linux 4.0Beta版发布之际,启动了全新的项目主页(qomo.linux-ren.org),用以展示最新版的QomoLinux特性及功能预览,Qomo Linux的发布也将集中在该项目主页上,同时,也会不断丰富项目主页的功能,未来,将会提供给用户个性化定制Qo...
WPS官方微博消息称WPS For Linux Alpha5已经通过了测试,进入了最后的发布准备阶段,预计在周五与大家见面。<img style="" alt="Click here to open new window" src=""" border="0">最能见证这个消息的是这张图。预计不久后WPS的Windows版本与Linux版本将会同步更新。
最新评论