随笔分类 -  linux

摘要:来源:https://cnodejs.org/topic/4f9904f9407edba21468f31e镜像使用方法(三种办法任意一种都能解决问题,建议使用第三种,将配置写死,下次用的时候配置还在):1.通过config命令npm config set registry https://regis... 阅读全文
posted @ 2014-10-31 10:58 ifeixiang 阅读(78526) 评论(3) 推荐(3) 编辑
摘要:Pomelo:网易开源基于 Node.js 的游戏服务端框架https://github.com/NetEase/pomelo/wiki/Home-in-Chinese 阅读全文
posted @ 2014-10-22 18:35 ifeixiang 阅读(830) 评论(0) 推荐(0) 编辑
摘要:在安装一个程序的时候提示libc.so.6过旧,但是查看libc.so的版本是最新的,于是尝试使用尝试软链接 ln -s /usr/lib64/libc.so /usr/lib64/libc.so.6 , 悲剧的事情发生了!几乎所有的linux命令都依赖于libc.so,libc.so.6是一个动态... 阅读全文
posted @ 2014-10-22 11:27 ifeixiang 阅读(19912) 评论(1) 推荐(0) 编辑
摘要:安装supervisor方法,可以直接用 yum install supervisord ,但是版本可能会旧一点,可以参考官方的方法:easy_install supervisorhttp://supervisord.org/installing.html#installing-to-a-syste... 阅读全文
posted @ 2014-10-20 18:14 ifeixiang 阅读(3314) 评论(0) 推荐(1) 编辑
摘要:ulimit 用于限制 shell 启动进程所占用的资源,支持以下各种类型的限制:所创建的内核文件的大小、进程数据块的大小、Shell 进程创建文件的大小、内存锁住的大小、常驻内存集的大小、打开文件描述符的数量、分配堆栈的最大大小、CPU 时间、单个用户的最大线程数、Shell 进程所能使用的最... 阅读全文
posted @ 2014-10-15 14:35 ifeixiang 阅读(1105) 评论(0) 推荐(0) 编辑
摘要:官方文档:http://gearman.org/getting-started/安装方法和示例都有,可以详细看一下。Gearman是一个分发任务的程序框架,可以用在各种场合,与Hadoop相比,Gearman更偏向于任务分发功能。它的任务分布非常简单,简单得可以只需要用脚本即可完成。Gearman最... 阅读全文
posted @ 2014-10-10 13:56 ifeixiang 阅读(10666) 评论(0) 推荐(1) 编辑
摘要:Supervisor: A Process Control System 阅读全文
posted @ 2014-10-08 18:10 ifeixiang 阅读(327) 评论(0) 推荐(0) 编辑
摘要:自从zabbix被撤了,服务器一直处于无监控状态,今天又搜索了一番,找了一些监控工具:Glances : 一个比Top更友好的监控整个linux系统的命令行工具;安装方法: yum install -y glances 阅读全文
posted @ 2014-09-19 18:33 ifeixiang 阅读(233) 评论(0) 推荐(0) 编辑
摘要:Redis的应用http://www.redis.cn/commands.htmlhttp://www.cnblogs.com/ikodota/archive/2012/03/05/php_redis_cn.htmlhttp://redis.readthedocs.org/en/latest/ind... 阅读全文
posted @ 2014-07-29 17:16 ifeixiang 阅读(413) 评论(0) 推荐(0) 编辑
摘要:在修改登录中心的时候,数据存储在redis里面,需要对redis进行监控,使用的是Redis-Live参考文章:http://www.nkrode.com/article/real-time-dashboard-for-redis首先要安装pip,centos上安装方法:wgethttps://bo... 阅读全文
posted @ 2014-07-02 19:48 ifeixiang 阅读(297) 评论(0) 推荐(0) 编辑
摘要:查看占用IO的进程http://www.xaprb.com/blog/2009/08/23/how-to-find-per-process-io-statistics-on-linux/ 阅读全文
posted @ 2014-06-13 18:02 ifeixiang 阅读(1146) 评论(0) 推荐(0) 编辑
摘要:将pureftpd.passwd文件的内容转换成sql语句,导入到mysqlpureftp.passwd格式:::::::::::::::::: 阅读全文
posted @ 2014-05-08 18:54 ifeixiang 阅读(1239) 评论(0) 推荐(0) 编辑
摘要:使用php写的,方便点 $LOG"; `$cmd`; _debug($cmd); // 再使用goaccess生成网页 $cmd = "/usr/local/bin/goaccess -f $LOG -a > /yfdata/mobile/$HTML"; `$cmd`;... 阅读全文
posted @ 2014-05-08 16:12 ifeixiang 阅读(848) 评论(0) 推荐(0) 编辑
摘要:下面直接介绍几种常见的DD命令,先看一下他的区别~ddbs=64k count=4k if=/dev/zeroof=testddbs=64k count=4k if=/dev/zeroof=test;syncddbs=64k count=4k if=/dev/zeroof=testconv=fdatasyncddbs=64k count=4k if=/dev/zeroof=testoflag=dsync这四条DD命令区别在于内存中写缓存的处理方式。1.ddbs=64k count=4k if=/dev/zeroof=test 没有加任何参数,dd默认的方式不包括“同步(sync)”命令。也就. 阅读全文
posted @ 2014-03-25 16:20 ifeixiang 阅读(15944) 评论(0) 推荐(0) 编辑
摘要:linux文件共享可以有多种方式:samba,nfs,ftp等等nfs在linux之间效率高些:function nfs(){ share_folder="/data1 192.168.0.239(rw,sync,no_root_squash)" yum install nfs-utils rpcbind echo $share_folder >> /etc/exports exportfs -rv showmount -e 127.0.0.1 # 客户端使用 # mount -t nfs 192.168.122.31:/data1 /data... 阅读全文
posted @ 2014-03-17 15:40 ifeixiang 阅读(269) 评论(0) 推荐(0) 编辑
摘要:selinux这东西,有时候真让人搞不懂。临时关闭:setenforce 0getenforce #查看状态是否是disabled永久关闭:vim /etc/sysconfig/selinux全部注释掉加上SELINUX=disabled 阅读全文
posted @ 2014-03-11 14:16 ifeixiang 阅读(613) 评论(0) 推荐(0) 编辑
摘要:windows底下有大量的硬件测试工具,那么linux底下也同样有,例如,我们租用机房的服务器的时候,要跑的业务比较重要,需要提供不间断服务,那么服务器的稳定性测试显得格外重要,也是交付服务器要做的第一件事,下面是网友总结的一些烤机软件,也就是压力测试工具,在高硬负载下服务器的稳定性Linux底下测试工具有下面这些stresslinuxsuper piprimemprimenbenchcpuburngamutmersenne primestresscpu burn-inmemtestermemtest86memtest86++System Stability TesterBONNIE++/HP 阅读全文
posted @ 2014-03-06 15:43 ifeixiang 阅读(38510) 评论(0) 推荐(1) 编辑
摘要:参考文章:http://smilejay.com/kvm_theory_practice/ 阅读全文
posted @ 2014-03-06 14:51 ifeixiang 阅读(223) 评论(0) 推荐(0) 编辑
摘要:rpm常用的命令组合:rpm -ivh:安装显示安装进度--install--verbose--hash-Uvh:升级软件包--Update;-qpl:列出RPM软件包内的文件信息[Query Package list];-qpi:列出RPM软件包的描述信息[Query Package install package(s)];-qf:查找指定文件属于哪个RPM软件包[Query File];-Va:校验所有的RPM软件包,查找丢失的文件[View Lost];-e:删除包yum常用的命令组合:yum# 安装卸载install xxx : 安装包yum groupinsall remove x. 阅读全文
posted @ 2014-03-05 11:52 ifeixiang 阅读(4198) 评论(0) 推荐(0) 编辑
摘要:#remi的源rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpmrpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-remi#Fedora EPEL的源 rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 https://www.fedoraproject.org/s 阅读全文
posted @ 2014-03-03 14:47 ifeixiang 阅读(205) 评论(0) 推荐(0) 编辑