摘要:#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
阅读全文
摘要:#nginx 开启目录浏览 location / { root /data/www/file //指定实际目录绝对路径; autoindex on; //开启目录浏览功能; autoindex_exact_size off; //关闭详细文件大小统计,让文件大小显示MB,GB单位,默认为b; aut
阅读全文
摘要:#自己生成ssl证书 这里说下Linux 系统怎么通过openssl命令生成 证书。 首先执行如下命令生成一个key openssl genrsa -des3 -out ssl.key 1024 然后他会要求你输入这个key文件的密码。不推荐输入。因为以后要给nginx使用。每次reload ngi
阅读全文
摘要:在.htaccess文件中增加 AuthUserFile /var/www/htpasswd/test.htpasswd AuthName EnterPassword AuthType Basic require valid-user #htpasswd密码文件生成。Create a passwor
阅读全文
摘要:#wnmp mysqld -install net start mysql memcached -d uninstall memcached -d install net start memcached net stop memcached sc delete mysql #对install进行清除
阅读全文
摘要:1. yum install subversion 2. mkdir -p /home/svn/svnfile 3. svnadmin create /home/svn/svnfile 4. 进入conf目录,配置passwd,配置authz 5. 修改svnserver.conf [general
阅读全文
摘要: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.
阅读全文