10 2013 档案
摘要:正则的圆括号描述(1). 在被修饰匹配次数的时候,括号中的表达式可以作为整体被修饰(2). 取匹配结果的时候,括号中的表达式匹配到的内容可以被单独得到描述参见(http://www.regexlab.com/zh/regref.htm)结合php的preg_match函数来看下以下运行的结果$str = 'cabcdf1da32';$pattern = '/(abcd)/i';preg_match($pattern, $str, $matches);echo '';var_dump($matches);结果为array 0 => strin
阅读全文
摘要:php的服务器预定义变量 $_SERVER可以通过apache的mod_env模块来添加我们所需要的内容来段官网介绍Description:Modifies the environment which is passed to CGI scripts and SSI pagesStatus:BaseModuleIdentifier:env_moduleSourceFile:mod_env.cSummaryThis module allows for control of internal environment variables that are used by various Apache
阅读全文
摘要:tzselect #根据提示选择时区sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime #把设置好的时区文件粘贴到 /etc/localtime下sudo ntpdate cn.pool.ntp.org #与时间同步服务器同步
阅读全文
摘要:错误图片上述错误是dns解析错误,不能解析域名了,所以也访问不了解决办法,添加dns,命令如下sudo vim/etc/resolv.conf添加 nameserver (此外填写域名服务器,我是电信即填写)nameserver 8.8.8.8注:这样可以临时解决,不过重启系统后,这里会被还原,按如下方式修改网络配置sudo vim /etc/network/interfaces#IP配置auto loiface lo inet loopbackauto eth0iface eth0 inet staticaddress 10.0.3.79netmask 255.255.255.0networ
阅读全文
摘要:直接粘命令吧sudo vim /etc/init/lightdm.conf注释掉下面的内容start on ((filesystemand runlevel [!06]and started dbusand (drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1or stopped udev-fallback-graphics))or runlevel PREVLEVEL=S)即#start on ((filesystem# and runlevel [!06]# and started dbus# and (drm-device-added
阅读全文

浙公网安备 33010602011771号