
linux
文章平均质量分 58
linux内核控
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
freeswitch+kamailio+unimrcp
这里写自定义目录标题安装freeswitch和unimrcp1.准备2.安装顺序:安装freeswitch:安装unimrcp3.开始配置 freeswitch 和unimrcp启动freeswitch配置freeswitchunimrcpserver-mrcp2 对应的是一个配置:配置freeswitch对应的 unimrcp启动unimrcp用sip客户端拨打4.配置负载均衡kamailio1.日志设置:2.负载均衡mrcp的配置3.freeswitch端口修改4.图结构5.sip的h5的客户端的配置w原创 2021-08-27 17:17:20 · 4712 阅读 · 0 评论 -
c++的反射的demo
c++的反射的demo一个基本例子把这个改造成:调用方不改,底层so可以改的方式一个基本例子reflection.cpp// 工厂类的定义#include <map>#include <iostream>#include <string>using namespace std;typedef void* (*PTRCreateObject)(void);class ClassFactory {private: map<string, PT原创 2021-04-04 20:14:16 · 314 阅读 · 0 评论 -
php dojo helloworld
下了个dojo1.5的源码,demo全是php的,随便找了个redhat5(192.168.200.12)vim /etc/httpd/conf/httpd.conf修改ServerName 192.168.200.12:80如果想显示目录结构[code="java"] Options Indexes FollowSymLinks AllowOverride...原创 2011-01-14 10:56:15 · 137 阅读 · 0 评论 -
rsync的helloworld
http://blog.leezhong.com/project/2010/12/13/inotify-rsync.html这个写得不对rsync -av --progress --include=kk --exclude='*' --password-file=/etc/rsyncd.secrets /opt/backuptest/ haha@10.1.224.171::test...原创 2011-05-07 12:34:20 · 87 阅读 · 0 评论 -
crontab的helloworld
参考http://blogold.chinaunix.net/u/31547/showart_438018.html和http://www.chinaunix.net/jh/6/271992.html环境redhat5.4查看:crontab -lcrontab -u user -e*/2 * * * * echo "`date` \n " >>/root/Desktop/...原创 2011-05-08 23:03:12 · 156 阅读 · 0 评论 -
几个dos命令
[code="java"]命令 功能bootcfg 配置、查询或更改 Boot.ini 文件设置。defrag 定位并整理本地卷上的零碎根区文件、数据文件和文件夹。diskpart 管理磁盘、分区或卷。driverquery 查询驱动程序和驱动程序属性列表。eventcreate 使管理员在指定事件日志中创建自定义事件。eventquery 列出一个或多个事件日志中的事件和...原创 2011-05-14 00:33:17 · 171 阅读 · 0 评论 -
linux必须会的命令lsof,有助于弄死你讨厌的服务器
发现linux磁盘一直在增大,但一直没找到占用的文件小心是nginx正在用删过的文件哦,会一直写block的,很恐怖哦nginx的日志文件一定要停止nginx之后再删lsof -n|grep delete查找那些进程在使用已经删除的文件------------------------------------------------如果不是你程序主动记的日志,那可查一下数...原创 2011-05-22 22:30:49 · 340 阅读 · 0 评论 -
fd和ps
转载http://dev.firnow.com/course/6_system/linux/Linuxjs/20090508/166896.html好怀念h老师啊,我曾经纳闷为什么linux技术那么牛的人老师看一本unix基础教程,还记得我看fd那章的时候大概半小时就学完了,还大言不惭“真简单”linux结构真想找本书弄明白啊引用:[code="java"]在较新的linux内核中...原创 2011-05-23 22:36:19 · 374 阅读 · 0 评论 -
nginx基本
在ubuntu下[code="java"]root@ubuntu:/etc/nginx/sites-enabled# whereis nginxnginx: /usr/sbin/nginx /etc/nginx /usr/share/nginx /usr/share/man/man1/nginx.1.gz[/code][code="java"]root@ubuntu:/etc/ng...原创 2011-05-23 23:38:23 · 175 阅读 · 0 评论 -
!!等有用的shell
!!表示上一个命令原创 2011-09-02 09:31:15 · 101 阅读 · 0 评论 -
vim taglist 和vim练级攻略
强烈推荐这个http://coolshell.cn/articles/5426.htmlvim练级攻略也参考http://blog.youkuaiyun.com/vaqeteart/article/details/4146618切换:bn:bp[code="java"]0 → 到行头^ → 到本行的第一个非blank字符$ → 到行尾g_ → 到本行最后一个不是blan...原创 2011-09-07 00:24:26 · 157 阅读 · 0 评论 -
vim多行注释
多行注释的时候shell脚本没有/* */一行一行的#是不是很头疼?宁哥交你一招:vim下比如[code="java"]hahaheiheienenyehyehdadada[/code]:set nu显示行号如果要注释1-3行则[code="java"]ctrl+v 2回车I#esc esc[/code]...原创 2011-09-07 13:38:36 · 135 阅读 · 0 评论 -
Squid中文权威指南
http://home.arcor.de/pangj/squid/原创 2011-09-15 13:43:05 · 176 阅读 · 0 评论 -
linux日志查看
转http://profile.8j.com/question/116/90/142.htmlinux查看日志: # cd /var/log # less secure 或者 # less messages 最近登录的日志: # last who、w、users、last和ac[code="java"]linux日志管理: 1. 日志简介 日志对...原创 2011-02-21 10:56:16 · 169 阅读 · 0 评论 -
转 Linux 某个目录下的文件按大小排序
转载http://www.iteye.com/topic/368258Linux 某个目录下的文件按大小排序 1. df -lh 2. du -s /usr/* | sort -rn 这是按字节排序 3. du -sh /usr/* | sort -rn 这是按兆(M)来排序 4.选出排在前面的10个 du -s /usr/* | sort -r...原创 2011-06-14 11:54:54 · 133 阅读 · 0 评论 -
unix程序设计教程笔记
p1-1.cgethostname(hostname,size)gethostid p1-2.cuname(&uts) p1-3.c 不好使getcwd(buffer, size) p2-1.cfopen("test_file","w")fputs("Hello world",stream) fgets(buf, sizeof(bu...原创 2011-02-26 17:51:49 · 124 阅读 · 0 评论 -
ubuntu nfs共享文件夹
如果出现权限问题检查下这个chmod -R 777 目录名nfsapt-get install nfs-kernel-servervim /etc/exports新加/data *(rw,sync,no_root_squash)/etc/init.d/portmap restart/etc/init.d/nfs-kernel-server resta...原创 2011-06-17 15:58:05 · 335 阅读 · 0 评论 -
备份方法scp rsync,inotifywait
参考http://blog.leezhong.com/project/2010/12/13/inotify-rsync.html https://github.com/rvoicilas/inotify-tools/wiki/远程执行脚本ssh -l root 10.10.10.10 "/opt/test/stop.sh";ssh -l root 10.10.10.10 "scp...原创 2011-06-21 17:19:11 · 194 阅读 · 0 评论 -
转 Nginx 构建一个“高”可用的 PHP 集群
http://oneoo.com/articles/nginx-php-grid.htmlhttps://github.com/dctrwatson/nginx-upstream-consistent原创 2011-06-21 21:51:46 · 130 阅读 · 0 评论 -
linux telnet
忘了转载谁 了,不是原创★★★★★★★★★1。基础知识linux提供服务是由运行在后台的守护程序(daemon)来执行的。守护进程的工作就是打开1个端口(port),等待(listen)进入的连接。在C/S模式中,如果客户提请了1个连接,守护进程就创建(fork)子进程来响应这个连接,而父进程继续监听其他服务的请求。但是,对于系统所提供的每1个服务,如果都必须运...原创 2011-03-03 17:27:47 · 113 阅读 · 0 评论 -
linux网络
为什么google和百度搜的中文的关于网络的文章都是大粪呢看官网的吧http://www.yolinux.com/TUTORIALS/LinuxTutorialNetworking.html原创 2011-06-26 23:55:17 · 107 阅读 · 0 评论 -
tcl的helloworld
http://www.tcl.tk/man/tcl8.5/tutorial/tcltutorial.html[code="java"]puts "Hello, World - In quotes" ;# This is a comment after the command.# This is a comment at beginning of a lineputs {Hel...原创 2011-06-28 00:33:29 · 449 阅读 · 0 评论 -
crontab会写日志,日志多了需要清理
http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command/Edit/Open your cron jobs, enter:$ crontab -eAppend string >/dev/null 2>&1 to stop mail alert:0 1 5 10 * /path/to/sc...原创 2011-06-29 10:23:43 · 383 阅读 · 0 评论 -
使用tune2fs 提高ext3多数据读写性能
ext3介绍http://en.wikipedia.org/wiki/Ext3#cite_note-0[code="java"]The maximum number of inodes (and hence the maximum number of files and directories) is set when the file system is created. If V is...原创 2011-06-29 11:20:34 · 156 阅读 · 0 评论 -
poll select
aio相关http://lse.sourceforge.net/io/aio.htmljfshttp://en.wikipedia.org/wiki/JFS_(file_system)xfshttp://xfs.org/index.php/XFS_Papers_and_Documentation------------javaeye挂了还是升级升的不支持chrome14...原创 2011-06-29 11:45:05 · 122 阅读 · 0 评论 -
linux恢复误删文件
如果是ext2参考http://www.docin.com/p-31938687.html实验了一下,果然可行拿一块硬盘测试,比如是sdb2[code="java"]#mkfs.ext2 /dev/sdb2#mount /dev/sdb2 /mnt/sdb2#cd /mnt/sdb2#vim testi输入haha:wq保存#rm test#cd .....原创 2011-03-05 23:59:34 · 136 阅读 · 0 评论 -
★trace和查看进程使用的文件
找到一个进程正在使用的所有文件,比如日志比如找叫ttserver的进程使用的文件查看idpidof ttserverls -la /proc/`pidof ttserver`/fd/查看c的代码[code="java"]ltrace -p 2323ltrace -f ttserverstrace -T -c -p 4985[/code]---...原创 2011-07-12 21:52:08 · 378 阅读 · 0 评论 -
ace安装
转载http://www.cppblog.com/true/archive/2007/07/15/28065.htmlredhat5.4测试可用/root/haoning/ace/ACE_wrappers/examples/C++NPv1下可以make[code="java"]export ACE_ROOT=/root/haoning/ace/ACE_wrappers...原创 2011-10-08 17:20:22 · 237 阅读 · 0 评论 -
ssh隧道
只使用ssh的例子[code="java"]ssh -N -f -L 2121:54.249.40.186:22 54.249.40.186ssh -p 2121 root@localhost[/code]访问本地端口就可以访问远程了[code="java"]ssh -N -f -R 2222:127.0.0.1:22 54.249.40.186登陆到54.24...原创 2011-10-10 11:14:04 · 159 阅读 · 0 评论 -
中科院分词
源码下载http://sewm.pku.edu.cn/QA/转http://www.cnblogs.com/zhenyulu/articles/653254.html原创 2011-10-10 14:18:02 · 165 阅读 · 0 评论 -
VIM中文手册
http://vimcdoc.sourceforge.net/doc/usr_toc.html#usr_toc.txt原创 2011-10-11 15:26:00 · 79 阅读 · 0 评论 -
epoll的helloworld
转https://banu.com/blog/2/how-to-use-epoll-a-complete-example-in-c/说明:介绍来自http://baike.baidu.com/view/1385104.htmepoll是Linux下多路复用IO接口select/poll的增强版本,它能显著提高程序在大量并发连接中只有少量活跃的情况下的系统CPU利用率,因为它不会复用文件描述...原创 2011-10-12 10:06:31 · 281 阅读 · 0 评论 -
log追查办法
lsof aaa.log得到进程id 1234ll /proc/1234/fd查看这个进程正在用什么文件lsof -n |grep delete查看哪些文件正在使用却被删除了原创 2011-07-22 16:32:13 · 240 阅读 · 0 评论 -
rsyslog的mysql的helloworld
http://downloads.mysql.com/archives.php?p=mysql-5.1&v=5.1.45x iazaimysql的rpm包http://rpm.scl.rs/mysql/Downloads/MySQL-5.1/redhat5.4上mysql安装参考http://hi.baidu.com/ablenavy/blog/item/ee85fff21b3e971...原创 2011-07-22 17:30:41 · 132 阅读 · 0 评论 -
mac的网站
http://www.macx.cn/http://benyouhui.it168.com/forum.php?gid=257http://www.macdown.com/bbs/原创 2011-07-23 16:57:16 · 123 阅读 · 0 评论 -
java linuc进程间通信对比
读《unix网络编程第二卷进程通信》1.管道2.消息队列3.信号量4.共享内存这些在java中怎么实现?如果是管道,参考http://www.iteye.com/topic/156804,看下面代码,注意把“注意这里!!!!!!!!”的i换成256实验一下效果[code="java"]import java.io.IOException;import java....原创 2011-03-20 15:49:28 · 164 阅读 · 0 评论 -
用iso建立本地yum源
http://www.ibm.com/developerworks/cn/linux/l-cn-yum/index.html?ca=drs-# mount -o loop rhel-server-5.4-i386-dvd.iso /media/cdrom # cat > /etc/yum.repos.d/dvd.repo [code="java"][dvd] name=in...原创 2011-03-22 09:42:09 · 101 阅读 · 0 评论 -
能跑的epoll
[code="java"]#include #include #include #include #include #include #include #include #include #include #include #include #include #define RUNTIMES 16 ...原创 2011-10-20 15:54:48 · 123 阅读 · 0 评论 -
备份.vimrc
[code="vim"]yntax on" Configuration file for vimfiletype onset modelines=0 " CVE-2007-2438" Normally we use vim-extensions. If you want true vi-compatibility" remove change the followi...原创 2011-10-20 20:59:40 · 134 阅读 · 0 评论 -
hp compaq8100默认没开vt,在bios的securety下
Intel VT三个层次:1. VTx -- 基于处理器2. VTd -- 基于芯片组北桥Direct_IO(DMA等)3. 虚拟Intel网卡 -- 基于芯片组南桥Intel网卡==========1. 处理器虚拟化1.1 VT-x -- 32bit处理器平台, 如: XeonVMX Root OperationVMX non-Root Operation...原创 2011-10-27 13:46:34 · 370 阅读 · 0 评论