搜索""的结果
免费开源的 Webmail Roundcube 搭建Roundcube 是一套免费开源的 Webmail 系统,最新版本 0.7。需要注意的是,Roundcube 仅仅是 Webmail,不带 mail 服务器的,也就是说,你必须配合 mail 服务器(比如 hMailServer)使用。下载最新的 Roundcube 0.7,解压到 Apache 的 htdoc 目录,改名为 webmailwebmail 目录打开浏览器,访问 “http://localhost/webmail/installer/”,这是 Roundcube 的安装脚本安装 RoundcubeRoundcube 的最低要求是 PHP 5.2,低于这个版本的升级先。其他要求请看图。点击 Start Installation,安装脚本会检查系统配置检查系统配置点击 Next,输入各种参数。其实主要就是 Mysql 和 imap/smtp 服务器。设置数据库由于这里是配合之前安装的 hMailServer 使用,因此我都填了 localhost,Roundcube 不会创建数据库,因此需要提前创建。IMAP 服务器SMTP 服务器Roundcube 自带简体中文,在语言这里填写 zh_CN设置语言点击 Create Config,安装脚本会生成两个配置文件 main.inc.php 和 db.inc.php,把他们下载到 “htdocs\webmail\config” 目录。以后修改配置可以直接编辑这两个文件。最后点击 Continue。检查路径和数据库可以看到,temp 和 logs 两个目...
oracle 10g 设置sga和pga大小本文介绍了oracle 10g 安装完成后,设置sga和pga大小的过程。1、登录数据库。sqlplus /nologconn sys/system@orcl as sysdba;2、设置sga和pga的大小。alter system set sga_max_size=2048m scope=spfile;alter system set sga_target=2048m scope=spfile;alter system set pga_aggregate_target=512m scope=spfile;3、关闭数据库、退出。shutdown immediate;exit;4、启动、加载、打开数据库。sqlplus / as sysdbastartup mount;alter database open;5、查看生效的sql语句。show parameter sga_max_size;show parameter sga_target;show parameter pga_aggregate_target;
QEMUYou can easily try out coreboot using QEMU, without having to actually flash the BIOS chip on your real hardware.Contents1 Tutorials2 Ready-made QEMU images2.1 coreboot v2 + SeaBIOS2.2 coreboot v3 + FILO2.3 coreboot + libpayload + coreinfo2.4 coreboot v3 + invaders2.5 coreboot v3 + libpayload + tint2.6 coreboot v3 + Memtest862.7 coreboot v3 + OpenBIOS3 DebuggingTutorials QEMU Build Tutorial — Starting a Debian GNU/Linux system via coreboot + a Linux kernel, or via coreboot + FILO. Booting FreeBSD using coreboot — Booting FreeBSD via coreboot + ADLO.Ready-made QEMU imagesBelow is a list of various downloadable QEMU images you can use to try out coreboot.You need a patched version of vgabios-cirrus.zip for these images to work fine, the version in QEMU's CVS repository does not yet work. The image from Debian's QEMU package (/usr/share/qemu/vgabios-cirrus.bin) is already patched and works, too.coreboot v2 + SeaBIOS SeaBIOS payload.SeaBIOS is an open-source legacy BIOS implementat...
抓哪个进程干坏事前要先停掉syslog /etc/init.d/rsyslog stop echo 1 > /proc/sys/vm/block_dump dmesg | egrep “READ|WRITE|dirtied” | egrep -o ‘([a-zA-Z]*)’ | sort | uniq -c | sort -rn | head 1423 kjournald 1075 pdflush 209 indexer 3 cronolog 1 rnald 1 mysqld 不要忘记在抓完之后关掉block_dump和启动syslog echo 0 > /proc/sys/vm/block_dump /etc/init.d/rsyslog start
zabbix添加对磁盘分区的监控 zabbix添加对磁盘分区的监控 首先服务器上的数据主要在/www上 /dev/sda8 ext4 299G 139G 146G 49% /www GUI--配置--主机--选择一台主机--项目--创建项目 类型zabbix代理(被动式) 键值vfs.fs.size[/www,pfree] 数据类型:数字的(浮点) 单位% 存档 这里需要说明一下 我想要监控的是某个分区的空闲(free)空间百分比 vfs.fs.size[fs,<mode>] mode,默认是total,剩下的就是free,used,pfree,pused,p这里应该就是百分的意思吧 对应的单位就是B(这里的意思是Byte)和%,如果监控大小,就得用Numeric (unsigned) Decimal 然后创建触发器 表达式: {m_redis_s11357712425:vfs.fs.size[/www,pfree].last(0)}<20 主机的话填写m_redis_s11357712425 模板的话就填写模板名称 mtepl 空间小于20%就报警,严重性,警告 好了,完成。 到监控服务器测试一下 [root@CDN-IMG2 redis]# zabbix_get -s 192.168.7.61 -p10050 -k "vfs.fs.size[/www,pused]" 48.813527 [root@CDN-IMG2 redis]# zabbix_get -h Zabbix get v2.0.3 (revision 30485) (03 October 2012) usage: zabbix_get [...
zabbix触发器表达式详解概述触发器中的表达式使用很灵活,我们可以创建一个复杂的逻辑测试监控,触发器表达式形式如下:{<server>:<key>.<function>(<parameter>)}<operator><constant>{主机:key.函数(参数)}<表达式>常数,具体的例子,请接着往下走,很简单Functions函数触发器functions可以引用检索到的值,当前时间或者其他元素。触发器表达式支持的function完整列表请点击官网地址 supported functionsFunction参数大多数数值functions可以使用秒来作为参数。你可以使用前缀“#”来表示它有不同的含义FUNCTION CALL描述sum(600)600秒内的总和sum(#5)倒数第五5个值last函数使用不同的参数将会得到不同的值,#2表示倒数第二新的数据。例入从老到最新值为1,2,3,4,5,6,7,8,9,10,last(#2)得到的值为9,last(#9)得到的值为2。last函数必须包含参数。AVG,count,last,min和max函数还支持额外的参数,以秒为单位的参数time_shift(时间偏移量)。例如avg(1h,1d),那么将会获取到昨天的1小时内的平均数据。备注:触发器表达式需要使用history历史数据来计算,如果history不可用(time_shift时间偏移量参数无法使用),因此history记...
关于ip_conntrack调整的一个好文 Tuning Linux firewall connection tracker ip_conntrackOverviewIf your Linux server should handle lots of connections, you can get into the problem with ip_conntrack iptables module. It limits number of simultaneous connections your system can have. Default value (in CentOS and most other distros) is 65536. To check how many entries in the conntrack table are occupied at the moment: cat /proc/sys/net/ipv4/netfilter/ip_conntrack_count Or you can dump whole table : cat /proc/net/ip_conntrack Conntrack table is hash table (hash map) of fixed size (8192 entries by default), which is used for primary lookup. When the slot in the table is found it points to list of conntrack structures, so secondary lookup is done using list traversal. 65536/8192 gives 8 – the average list length. You may want to experiment with this value on heavily loaded systems. Modifying conntrack capacity To see the current conntrack capacity...
报错ip_conntrack version 2.4 (8192 buckets, 65536 max) - 304 bytes per conntrack 大家都知道linux的iptables防火墙使用了ip_conntrack 内核模块实现连接跟踪功能,所有的进出数据包都会记录在连接跟踪表中,包括tcp,udp,icmp等,一旦连接跟踪表被填满以后,就会发生丢包,导致网络不稳定。 在大多数系统中,缺省的连接跟踪表大小是65536,可以通过下面2条命令查看缺省大小,sysctl net.ipv4.netfilter.ip_conntrack_maxcat /proc/sys/net/ipv4/netfilter/ip_conntrack_max 当需要扩大连接跟踪表时,首先需要先加载ip_conntrack 模块,再通过以下接口进行调整,例如:modprobe ip_conntracksysctl -w net.ipv4.netfilter.ip_conntrack_max = 655360(放大10倍)。 其实,ip_conntrack 模块支持一个隐含的模块参数hashsize(隐含参数意味着通过modinfo ip_conntrack查看时没有给出的模块参数),连接跟踪表其实是一张hash表,每个hash bucket(桶)有8条记录,因此65536条记录对应8192个has...
Raw Devices on Oracle Linux and Red Hat Enterprise LinuxVerify that an appropriate raw devices utility (util-linux) rpm is installed for the update of the operating systems. For example, on Oracle Linux 4 and Red Hat Enterprise Linux 4 (update 5), util-linux-2.12a-16.EL4.23.x86_64 or later rpm should be installed. On Oracle Linux 5 and Red Hat Enterprise Linux 5, util-linux-2.13-0.44.EL5.x86_64 or later rpm should be installed.When you restart an Oracle Linux 4, Oracle Linux 5, Red Hat Enterprise Linux 4, or Red Hat Enterprise Linux 5 system, raw devices revert to their original owners and permissions by default. If you are using raw devices with this operating system for your Oracle files, for example, for ASM storage or Oracle Clusterware files, you need to override this default behavior. To do this, add an entry to the /etc/rc.d/rc.local file for each raw device containing the chmod and chown commands required to reset them to the required values.As an example, here are sample ent...
概述在zabbix里面,我们不需要使用大数字来,例如我们可以不使用86400来表示一天,这个数字又不容易理解也容易出错。用什么办法来解决大数字问题呢?我们可以使用单位来简化,例如简化zabbix触发器表达式或者item key。所以,我们可以使用1d来渠道86400,‘d’就是单位后缀,表示天。时间单位后缀* s - 秒(一般来说来说不写s,就表示s了)* m - 分* h - 小时* d - 天* w - 周时间单位后缀支持如下使用场景:* 触发器表达式* zabbix internal item参数,如 zabbix[queue,<from>,<to>]* last parameter of aggregate checks单位符号Zabbix server和zabbix后台都支持使用这些单位显示,触发器表达式也可以使用这些单位。K - kiloM - megaG - gigaT - tera 如果item值的单位不是B、Bps,那么1000为基数,1000将会别显示成1k,2000显示为2k。如果单位是B或者Bps,那么基数就是1024了,item值为1024将会被展示成1k。所以在单位上面,大家一定要切记。例如流量别忘记单位改为B,访问量/次数不填写单位除了以上单位,zabbix还支持如下单位(单位很大,基本很少用到)P - petaE - exaZ - zettaY - yotta使用例子在编写触发器表达式中使用这些单位会显得好理解并且更好...
最新评论