歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> linux基礎環境配置

linux基礎環境配置

日期:2017/2/25 10:38:33   编辑:Linux教程
 1、系統增加中文字符集

  centos 4

  yum install ttfonts-zh_CN

  在centos5

  fonts-chinese-3.02

  2、mysql 字符集(默認是latin1 )

  Windows平台

  windows下的mysql配置文件是my.ini,一般在c:\windows\my.ini可以直接在這個文件裡面加上

  default-character-set=utf8

  然後重新啟動mysql

  service mysql restart

  linux 平台

  linux下的mysql配置文件是my.cnf,一般是/etc/my.cnf

  增加default-character-set=utf8

  3、時區修改(以下是CST)

  /etc/sysconfig/clock

  ZONE="Asia/Shanghai"

  UTC=false

  ARC=false

  cp -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

Copyright © Linux教程網 All Rights Reserved