易截截图软件、单文件、免安装、纯绿色、仅160KB

发个在linux下用python写守护进程的好东东(转)

 一个别人写的模块,可以直接用来把一个普通进程改为守护进程。
并且自动把标准输出重定向到日志文件,很实用啊。
view plaincopy to clipboardprint?
<BR>   
'''''<BR>  
    This module is used to fork the current process into a daemon.<BR>  
    Almost none of this is necessary (or advisable) if your daemon <BR>  
    is being started by inetd. In that case, stdin, stdout and stderr are <BR>  
    all set up for you to refer to the network connection, and the fork()s <BR>  
    and session manipulation should not be done (to avoid confusing inetd). <BR>  
    Only the chdir() and umask() steps remain as useful.<BR>  
    References:<BR>  
        UNIX Programming FAQ<BR>  
            1.7 How do I get my program to act like a daemon?<BR>  
                [url]http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC16[/url]<BR>  
        Advanced Programming in the Unix Environment<BR>  
            W. Richard Stevens, 1992, Addison-Wesley, ISBN 0-2


相关文档:

Linux iptable文档

总览
用iptables -ADC 来指定链的规

,-A添加 -D删除 -C 修改
iptables - [RI] chain rule num rule-specification[option]
用iptables - RI 通过规则的顺序指定
iptables -D chain rule num[option]
删除指定规则
iptables -[LFZ] [chain][option]
用iptables -LFZ 链名 [选项]
iptables -[NX] chain
用 -NX ......

Linux系统上架设VSFTP服务器实例解析

     
实验环境:AS4最小化安装
实验目标:架设VSFTP服务器
这次我们来学习Linux系统中的 vsftp服务器的配置。
下面我们开始了!首先我们安装vsftp服务器端的软件。
vsftpd服务器的安装文件位于第1张安装光盘中。
使用rpm命名可顺利安装该软件包。
# rpm -ivh vsftpd-2.0.1-5.i386.r ......

Ubuntu 10.04 brings Linux closer to the mainstream

Ubuntu 10.04 brings Linux closer to the mainstream
No Windows viruses. Free. Any questions?
Of course. Start with this one: How can an operation system with those virtues, the open-source Linux, remain confined to a tiny minority of desktop and laptop computers at home?
Linux may run TiVo video r ......

Linux下Tomcat 6.0.26 安装

我用的是 fedora 12 自待的jdk 1.6 在 /usr/lib/jvm/java-1.6.0-openjdk
第一步:把apache-tomcat-6.0.26.tar.gz解压后放到/usr/local/下重命名为apache-tomcat-6.0.26
第二步:在/etc/profile文件中适当的位置添加如下环境变量
CATALINA_HOME=/usr/local/apache-tomcat-6.0.26
CATALINA_BASE=/usr/local/apache-tomcat ......

Linux 安装SVN

其实Linux下SVN还是比较简单, 在网上, 一搜就是一大把的资料。 但很少有人一次安装成功, 因为Linux中的环境太复杂,
很容易环境冲突。
linux svn一般依赖于httpd(Apache Web服务器).
svn独立方式
当然svn还有独立方式, 即不需要apache服务器, 即跳过下面的apache安装, 及配置中关于httpd.conf部分。
在编译s ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号