Chrome源码编译

1.安装DirectX 2010 June
如果安装的时候出现失败“Error Code: S1023”,你需要打开添加删除程序,卸载
Microsoft Visual C++ 2010 x86 redistribuable – 10.0.( 数比30319大的)
Microsoft Visual C++ 2010 x64 redistribuable – 10.0.( 数比30319大的)

2.安装Visual Studio 2010

3.安装VS2010 SP1补丁包

4.安装Windows 8 SDK

5.修改Windows 8 SDK
将Windows 8 SDK安装目录下Includewinrtasyncinfo.h文件中的
enum class …

Nginx + php-fpm 性能优化

当nginx日志中出现:
connect() to unix:/var/run/php-fpm/php-fpm.sock failed (11:       Resource temporarily unavailable) while connecting to upstream, client: 127.0.0.1, server: 127.0.0.1, re      quest: "GET / HTTP/1.0", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "127.0.0.      1"

可以使用ip:port替换unix sock模式(不推荐)
{
vi /etc/php-fpm.d/www.conf
listen = /var/run/php-fpm/php-fpm.sock
to
listen = 127.0.0.1:9002

vi 

MySQL 5.7/8.0 优化

vi /etc/my.cnf
[mysqld]
...
performance_schema=off
ssl=off

关闭performance_schema和ssl可以降低cpu占用
MySQL 8.0 降低内存占用:
查看原始值:
show global variables like "performance_schema_max_table_instances";
-1
show global variables like "table_definition_cache";
2000
show global variables like "table_open_cache";
4000

vi /etc/my.cnf
performance_schema_max_table_instances=600
table_definition_cache=400
table_open_cache=256
查看密码安全验证级别:
mysql SHOW VARIABLES LIKE '%validate_password_policy%';

Fedora 21/20 x64 安装搜狗拼音输入法

1、先卸载系统自带的Ibus输入法
sudo yum remove ibus
gsettings set org.gnome.settings-daemon.plugins.keyboard active false

2.安装Fcitx输入法
sudo yum install fcitx fcitx-pinyin

GNOME桌面:
sudo yum install fcitx-configtool
KDE桌面:
sudo yum install kcm-fcitx

查看Fictx版本
$fcitx --version
fcitx version: 4.2.8.3

3、配置一下Fcitx、在~/.bashrc添加如下内容
export GTK_IM_MODULE=fcitx  
export QT_IM_MODULE=fcitx  
export XMODIFIERS="@im=fcitx"

4.注销或重启后完成安装