server { listen 80; server_name www.funsion.com; root /www/web/funsion; index index.php; location / { # 不带www的时候,自动加上www if ($host !~ '^www') { rewrit Read More
posted @ 2016-03-07 08:49 Funsion Wu Views(325) Comments(0) Diggs(0) Edit
class CsvReader { private $csv_file; private $spl_object = null; private $error; public function __construct($csv_file = '') { if($csv_file && file_ex Read More
posted @ 2016-03-07 08:33 Funsion Wu Views(317) Comments(0) Diggs(0) Edit
chkconfig命令主要用来更新(启动或停止)和查询系统服务的运行级信息。谨记chkconfig不是立即自动禁止或激活一个服务,它只是简单的改变了符号连接。 使用语法: chkconfig [--add] [--del] [--list] [系统服务] 或 chkconfig [--level < Read More
posted @ 2016-03-07 08:31 Funsion Wu Views(282) Comments(0) Diggs(0) Edit
PS:有时候你发现用root权限都不能修改某个文件,大部分原因是曾经用chattr命令锁定该文件了。chattr命令的作用很大,其中一些功能是由Linux内核版本来支持的,不过现在生产绝大部分跑的linux系统都是2.6以上内核了。通过chattr命令修改属性能够提高系统的安全性,但是它并不适合所有 Read More
posted @ 2016-03-07 08:22 Funsion Wu Views(477) Comments(0) Diggs(0) Edit