摘要: 今天为服务器配置双网卡的时候,需要配置路由.因为路由是用命令添加的,所以每次关机或重起系统,路由就丢失了.于是想到每次重起的时候执行一段脚本用来添加路由,这样我就不用每次重起都手动添加了.以下用添加路由为例.我想在系统启动时执行:sudo route add -net 10.35.0.0/24 gw 10.35.0.254 dev eth0sudo route add -net 10.35.51.0/24 gw 10.35.0.254 dev eth0sudo route add -net 10.35.60.0/24 gw 10.35.0.254 dev eth01.首先,我们创建一个 /et 阅读全文
posted @ 2013-12-09 19:10 Felcx 阅读(1398) 评论(0) 推荐(0) 编辑
摘要: PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone在用PHP5.3以上的PHP版本时,只要是涉及时间的会报一个"PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone settings.You are *required* to use the date.timezone setting or the date_default_timezo 阅读全文
posted @ 2013-12-09 14:47 Felcx 阅读(1364) 评论(0) 推荐(0) 编辑