04 Linux内核参数调整

文件打开数量设置

vi /etc/security/limits.conf

* soft nofile 262140 
* hard nofile 262140 
root soft nofile 262140 
root hard nofile 262140 

* soft core unlimited 
* hard core unlimited 
root soft core unlimited 
root hard core unlimited 

保存,使用ulimit验证
ulimit -a

保存,重新登录,即可生效

修改Linux字符集##

步骤1:
修改i18n文件

vi /etc/sysconf/i18n

将默认LANG修改为

LANG="zh_CN.UTF-8"

步骤2:
切换为mysql启动用户(root、mall)

su root
注意:两个用户都需要设置

编辑.bash_profile文件

vi ~/.bash_profile

在文件的最后增加两行

export LANG=zh_CN.UTF-8
export LANG

退出编辑,执行

source ~/.bash_profile
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容