- 博客(10)
- 收藏
- 关注
转载 centos 配置防火墙
添加端口: #/sbin/iptables-IINPUT-ptcp--dport80-jACCEPT #/sbin/iptables-IINPUT-ptcp--dport22-jACCEPT 保存: #/etc/rc.d/init.d/iptabless...
2014-08-29 15:30:00 89
转载 linux 下计划任务
linux 下计划任务的格式为 Minute Hour Day Month Dayofweek command分钟 小时 天 月 天每星期 命令 echo'023***/usr/local/php/bin/php/opt/ap...
2014-08-29 15:27:00 82
转载 socket udp 方式
<?php set_time_limit(0); ob_implicit_flush(); $socket=socket_create(AF_INET,SOCK_DGRAM,SOL_UDP); if($socket===false){ echo"so...
2014-08-29 15:24:00 115
转载 shell 判断文件中是否含有某个字符串
#/bin/sh if[-z"`grep"/sbin/reboot"/etc/crontab`"];then echo'00***/sbin/reboot'>>/etc/crontab /sbin/servicecrondrestart fi ...
2014-08-29 15:23:00 5402
转载 php 发送get 请求
1)php 通过 file_get_contents 模拟发送 get 请求 <?php $url='http://www.phpernote.com/php-function/654.html'; $re=file_get_contents($url); print_r($re); ...
2014-08-29 15:22:00 160
转载 php ftp 操作类
<?php /** *仿写CodeIgniter的FTP类 *FTP基本操作: *1)登陆;connect *2)当前目录文件列表;filelist *3)目录改变;chgdir *4)重命名/移动;...
2014-08-29 15:19:00 129
转载 使用sed 在某个文件中添加行
#!/bin/sh sed-i'/echo "startlistenprogram.."/i\echo"startheartbeatprogram.."\n\npid= kill_program_by_name"heartbeat.sh"\npid=kill_prog...
2014-08-29 15:17:00 224
转载 python 执行c 程序解析 xml 写入文本文件统计程序
#encoding:utf8 importos importstring importre importMySQLdb try: importxml.etree.cElementTreeasET exceptImportError: importxml.et...
2014-08-29 15:16:00 100
转载 centos 固定ip 方式配置
centos 6.X DEVICE=eth0 HWADDR=00:0C:29:14:38:E4 TYPE=Ethernet ONBOOT=yes BOOTPROTO=static IPADDR=192.168.100.188 GATEWAY=192.168.100.1 NETMASK=255...
2014-08-29 15:14:00 81
转载 coreseek 安装,安装 php连接sphinx 拓展
使用sphinx 需要注意以下几件事情: 1 .首先要有数据 2 .建立Sphinx 配置文件 3 .生成索引 4 .启动Searchd 服务进程,并开户端口 9312 5 .用php 客户端去连接sph...
2014-08-29 14:46:00 118
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人