崔凯的备忘录
Contents
本文主要做一个备忘录,提醒自己爱忘的软件配置及使用。
(非教程,仅供自己参考,如果大家遇到类似问题,可以留言咨询详细方法)
- mysql导入数据库文件最大限制
修改php.ini中upload_max_filesize - Linux下重启Apache的命令
>whereis apache
>su
>/etc/init.d/apache2 restart
or
/etc/init.d/httpd restart - 服务器文件打包备份命令
ck@debian:/var/www/ck$ tar czvf uicss.cn.tar uicss.cn - 查询服务器日志,某个页面被访问了多少次
cd /var/log/nginx/
cat 168un.20101010.log |grep “s1_7.php” |awk ‘{print $1}’ |sort -n |uniq |wc -l - 开启vhost
打开\conf\httpd.conf文件,查找#Include conf/extra/httpd-vhosts.conf并去掉#号 - windows7下使用PHP环境
配一次vhost,重启一次电脑 - Call to undefined function curl_init()
http://uicss.cn/?p=3412 - 本地环境500错误
删.htaccess - Error establishing a database connection
本地root用的密码123456 - 本地博客更换地址
mysql==>wp_options(点icon不要点字)==>siteurl - 403错误 You don’t have permission to access / on this server.
Options FollowSymLinks
AllowOverride None
Order deny,allow
allow from all
Satisfy all
- Deprecated: Assigning the return value of new by reference is deprecated in XXXX
修改php.ini,display_errors = On 改为display_errors = Off - 批量替换
UPDATE 表名 SET 字段名 = REPLACE(字段名, ‘寻找的关键字’,’替换后的关键字’)
mac下的开发环境
- apache路径
/Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf - Access forbidden!
You don’t have permission to access the requested directory. There is either no index document or the directory is read-protected.
显示简介-共享与权限
或者敲命令chmod -R 777 /Users/cuikai/Sites/bbs - 修改host
# sudo vi /etc/hosts - 删除SVN文件
find . -name “.svn” | xargs rm -Rf - 显示隐藏文件
defaults write com.apple.finder AppleShowAllFiles -bool true - 隐藏隐藏文件
defaults write com.apple.finder AppleShowAllFiles -bool false
手机
横屏方法
第一步:通过注册表来打开手动横屏模式。
HKEY_LOCAL_MACHINE\System\GDI\Rotation\
HideOrientationUI = “1” 为隐藏屏幕翻转选项;
HideOrientationUI = “0” 为显示屏幕翻转选项。
输入数字0就OK了。
第二步:然后进入“设置”——“个人”——“按键”选项卡
按键1(长按)
分配程序选择“旋转屏幕”
OK完成手动转屏设置,按HD最左边的键可实现转屏。