摘要:
POST表单400错误: 正确做法: Add this in the head section of your layout: <?= Html::csrfMetaTags() ?> --------------------------------- 不推荐的做法,以下做法是取消CSRF令牌验证: 阅读全文
摘要:
问题:假设用户名为:ali如果用户名没有超级用户权限,当输入 sudo + 命令 时, 系统提示:ali is not in the sudoers file. This incident will be reported.解决:1. 进入超级用户模式。即输入"su",系统会让你输入超级用户密码,输... 阅读全文
摘要:
创建用户、设置密码:useradd testuser创建用户testuserpasswd testuser给已创建的用户testuser设置密码增加sudo权限:#vi /etc/sudoers找到## Allows people in group wheel to run all commands... 阅读全文
摘要:
1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。2.应尽量避免在 where 子句中使用!=或操作符,否则将引擎放弃使用索引而进行全表扫描。3.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全... 阅读全文