04 2016 档案

yii2使用相关记录
摘要:#Yii::$app->user 是指yii\web\User这个类 #yii2在命令行下执行 D: cd D:\wnmp\php5 php D:\wnmp\www\yii2\yii test/test TestController.php <?php namespace console\contr 阅读全文

posted @ 2016-04-10 07:18 dream_bccb 阅读(378) 评论(0) 推荐(0)

nginx中相关配置
摘要:#nginx 开启目录浏览 location / { root /data/www/file //指定实际目录绝对路径; autoindex on; //开启目录浏览功能; autoindex_exact_size off; //关闭详细文件大小统计,让文件大小显示MB,GB单位,默认为b; aut 阅读全文

posted @ 2016-04-10 06:48 dream_bccb 阅读(224) 评论(0) 推荐(0)

自己生成nginx的https证书
摘要:#自己生成ssl证书 这里说下Linux 系统怎么通过openssl命令生成 证书。 首先执行如下命令生成一个key openssl genrsa -des3 -out ssl.key 1024 然后他会要求你输入这个key文件的密码。不推荐输入。因为以后要给nginx使用。每次reload ngi 阅读全文

posted @ 2016-04-10 06:32 dream_bccb 阅读(2985) 评论(0) 推荐(0)

Apache增加Basic Auth
摘要:在.htaccess文件中增加 AuthUserFile /var/www/htpasswd/test.htpasswd AuthName EnterPassword AuthType Basic require valid-user #htpasswd密码文件生成。Create a passwor 阅读全文

posted @ 2016-04-10 06:27 dream_bccb 阅读(424) 评论(0) 推荐(0)

Windows下wnmp相关配置
摘要:#wnmp mysqld -install net start mysql memcached -d uninstall memcached -d install net start memcached net stop memcached sc delete mysql #对install进行清除 阅读全文

posted @ 2016-04-10 06:19 dream_bccb 阅读(254) 评论(0) 推荐(0)

linux下安装svn server
摘要:1. yum install subversion 2. mkdir -p /home/svn/svnfile 3. svnadmin create /home/svn/svnfile 4. 进入conf目录,配置passwd,配置authz 5. 修改svnserver.conf [general 阅读全文

posted @ 2016-04-10 05:48 dream_bccb 阅读(157) 评论(0) 推荐(0)

php5.6 一键编译
摘要:1. 替换成aliyun的源 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors. 阅读全文

posted @ 2016-04-10 05:27 dream_bccb 阅读(239) 评论(0) 推荐(0)