【160221】服务器管理记录

  • MySQL:show columns of a certain datatable:

    show full columns from [tablename];

  • Nginx:remove root directory

    root /usr/share/nginx/html;
    …
    location / {
    …
    fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name;
    …
    }

    /etc/init.d/nginx restart

  • Nginx:add rewrite rules for redirecting,map port 8080 into 80.

    server {
    listen 8080;
    server_name localhost_redirect;
    rewrite ^/(.+)/.* /$1 last;
    location / {
    proxy_pass http://127.0.0.1:80;
    proxy_set_header Host $host:80;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
    }

黑苹果折腾第三迭代之末

通过不断调换SSDT存档,得出调查结论:
不同于以往的OS X 10.9,现在无论是BIOS还是DSDT或是SSDT屏蔽独显,都会导致核显工作不正常(闪烁、花屏乃至死机)。
独显虽无法参与工作,但也未必是个累赘。
反倒是**sensors.kext系列让机器温度偏高。
睡眠、唤醒顺利,但是蓝牙还是容易停止工作。
USB3.0能轻松驱动。

The 1st anniversary of this WordPress blog!

As can be seen from the 1st post, a magnificant year has passed along with abundant memories and dialogues at this site.
Up till now,there have been 178 articles published.

本站已启用“多说”评论框

“多说”评论框刚刚启用了。。。
方才配置过程中有些设置项目总加载不出,然后发现Chrome拦截了不安全的脚本。。。
接着是部分css样式没有即时显示,是cache的锅。。。

黑苹果开机慢的解决

黑苹果开机慢的解决

process launchctl[2] thread 242 caught burning CPU! It used more than 50% CPU…

Uninstalling the current Wacom drivers (6.3.15-1) and installing the previous version (6.3.11-3a)