本站有闲置空间

OpenWrt防火墙参考

2012-12-26 tomeqiu 技术原创

# intranet visited iptables -I INPUT -s 192.168.0.0/23 -j ACCEPT iptables -I INPUT -s 172.26.100.0/24 -j ACCEPT # PPTP visited iptables -I INPUT -p tcp --dport 1723 -j ACCEPT iptables -I INPUT -p 47 -j ACCEPT # SSH visited iptables -I INPUT -p tcp --dport 22 -j ACCEPT # intern...

阅读全文>>

标签: iptables Openwrt

评论(0) 浏览(1123)

RHEL5 yum 配置

2012-12-26 tomeqiu 技术原创

#注意非注册用户无法使用红帽的在线更新服务, #但可以配置为从光盘和163yum服务器处更新,在线更新选择CentOS。 [local] name=DVD baseurl=file:///mnt/Server gpgcheck=1 gpgkey=file:///mnt/RPM-GPG-KEY-redhat-release [CentOS] name=CentOS baseurl=http://mirrors.163.com/centos/5/os/i386/ gpgcheck=1 gpgkey=http://mirrors.163.com/centos...

阅读全文>>

标签: RHEL5 yum

评论(0) 浏览(623)

MySQL连接测试

2012-12-26 tomeqiu 技术原创

摘自PHP手册 <?php $link = mysql_connect('localhost','用户名','密码'); if(!$link) {     die('Could not connect: '.mysql_error()); } echo 'Connected Sucessfully!'; mysql_close($link); ?>

阅读全文>>

标签: mysql

评论(0) 浏览(1028)

正则表达式

2012-12-26 tomeqiu 技术原创

一个正则表达式,实际代表了一类字符串 基础正则表达式 ------------------------------------------------------------------- ^word 待搜寻的字符串(word)在行首! 范例:grep '^#' regular-express.txt word$ 待搜寻的字符串(word)在行尾! 范例:grep '!$' regular-express.txt \ 跳脱字符,将特殊符号的特殊意义去掉! 范例:grep \' regular-express.txt * 重复零个或多个的前一个RE字符。...

阅读全文>>

标签: 正则表达式

评论(0) 浏览(566)

No input file specified

2012-12-26 tomeqiu 技术原创

使用lighttpd+php-fcgi搭建PHP环境时,有可能出现No input file specified(未指定输入文件)和404错误。这是因为在php.ini里指定了doc_root,或cgi.fix_pathinfo=0。注释掉doc_root,然后设置cgi.fix_pathinfo=1,即可解决。

阅读全文>>

标签: lighttpd php-fcgi

评论(0) 浏览(682)

Powered by emlog  数据库调用 2次 加载耗时 19.86mssitemap
Free Web Hosting