centos7如何修改系统默认语言
centos7如何修改系统默认语言
修改/etc/locale.conf文件
默认为英文 LANG="en_US.UTF-8"
默认为中文
?
1
2
3
4
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN.UTF-8:zh_CN.GB2312:zh_CN"
SUPPORTED="zh_CN.UTF-8:zh_CN:en_US.UTF-8:en_US:en"
SYSFONT="lat0-sun16"
绛旓細centos7濡備綍淇敼绯荤粺榛樿璇█ 淇敼/etc/locale.conf鏂囦欢 榛樿涓鸿嫳鏂 LANG="en_US.UTF-8"榛樿涓轰腑鏂 ? 1 2 3 4 LANG="zh...
绛旓細1锛夋煡鐪嬪綋鍓嶈繍琛岀殑绾у埆 runlevel [root@chezhi chezhi]# runlevel N 3 [root@chezhi chezhi]濡傛灉绯荤粺褰撳墠榛樿杩愯绾у埆鏄浘褰UI妯″紡鍒檙unlevel 鏄剧ず缁撴灉涓猴細 5 3 2锛淇敼寮鏈洪粯璁よ繍琛岀骇鍒 systemd浣跨敤閾炬帴鏉ユ寚鍚戦粯璁ょ殑杩愯绾у埆锛岀敱/etc/systemd/system/default.target鏂囦欢涓喅瀹氥傚垏鎹㈠埌杩愯绾3锛歛. ...
绛旓細铏界劧inittab涓凡缁忔棤娉淇敼锛屼絾杩樻槸鍙互鍘讳笅鍘熷洜銆 鍛戒护琛屼腑锛歷i /etc/inittab centos浠嶇劧鍙湁涓ょ鍚姩妯″紡 multi-user.target:analogoustorunlevel3#鍛戒护琛屾ā寮 graphical.target:analogoustorunlevel5#鍥惧舰妯″紡 閫氳繃systemctl get-default 鍛戒护鑾峰彇褰撳墠妯″紡锛 锛堟敞鎰忥細杩欓噷鏄細systemctl 鏄瓧姣嶁渓鈥,涓嶆槸...
绛旓細CentOS7淇敼绯荤粺榛樿瀛楃闆 $ sudo localectl set-locale LANG=en_US.utf8 涔嬪悗閲嶅惎绯荤粺
绛旓細1锛夋煡鐪嬪綋鍓嶈繍琛岀殑绾у埆 runlevel [root@chezhi chezhi]# runlevel N 3 [root@chezhi chezhi]濡傛灉绯荤粺褰撳墠榛樿杩愯绾у埆鏄浘褰UI妯″紡鍒檙unlevel 鏄剧ず缁撴灉涓猴細 5 3 2锛淇敼寮鏈洪粯璁よ繍琛岀骇鍒 systemd浣跨敤閾炬帴鏉ユ寚鍚戦粯璁ょ殑杩愯绾у埆锛岀敱/etc/systemd/system/default.target鏂囦欢涓喅瀹氥傚垏鎹㈠埌杩愯绾3锛歛. ...
绛旓細echo 'export LANG=en_US.UTF-8' >> ~/.bashrc閲嶆柊鐧诲綍
绛旓細https://www.cnblogs.com/machangwei-8/p/10388883.html 濡備綍妫鏌ヨ繘绋嬫鍦ㄧ洃鍚殑淇″彿锛焗ttps://qastack.cn/unix/85364/how-can-i-check-what-signals-a-process-is-listening-to 鍦≧HEL7鎴CentOS7涓淇敼鍒涘缓璐﹀彿鏃绯荤粺榛樿UID銆丟ID鏈灏忚捣濮嬪煎強鍏朵粬璁剧疆 https://cloud.tencent.com/developer/...
绛旓細淇敼 vi /etc/inittab id:5:initdefault: // 鎶5鎹㈡垚3 wq瀛樺偍 centos7 vi /etc/inittab multi-user.target: analogous to runlevel 3 #鍛戒护琛屾ā寮 graphical.target: analogous to runlevel 5 #鍥惧舰妯″紡 systemctl get-default 鏌ョ湅褰撳墠榛樿鍚姩 systemctl set-default multi-user.target ...
绛旓細涓銆佸厛鍒涘缓鎴戜滑鎯宠鐨勭洰褰曪紝鎴戦夋嫨鍦 /home 涓嬪缓涓涓 www鐩綍 cd /home/ --杩涘叆home鏂囦欢澶逛笅 mkdir www --鍒涘缓www鏂囦欢澶1212 浜屻淇敼apache閰嶇疆鏂囦欢锛屼娇瀹氫綅鍒/home/www/ vim /etc/httpd/conf/httpd.conf -- 鐢ㄧ紪杈戝櫒鎵撳紑閰嶇疆鏂囦欢锛堟病瀹夎vim鐨勫悓瀛﹀彲浠ョ敤vi锛11 鎵惧埌 DocumentRoot 鈥...
绛旓細1銆佺敤铏氭嫙鏈哄姞杞介暅鍍忔枃浠讹紝杩涘叆瀹夎鐣岄潰 2銆侀夋嫨姹夎锛岃繘鍏ユ鐣岄潰锛屽紑濮嬪畨瑁呴厤缃 3銆佺偣鍑昏蒋浠堕夋嫨锛屽湪杩欎釜閲岄潰閰嶇疆绯荤粺瀹夎鏄渶瑕佸畨瑁呯殑鎻掍欢 4銆佺偣鍑籊ONME妗岄潰锛屽彸杈归夐」闅忎究閫夋嫨銆5銆佸垎鍖虹殑璇濓紝鏂版墜寤鸿璁╃郴缁熻嚜宸卞垎鍖哄氨琛屻6銆佽缃畬鎴愬悗鐐瑰嚮寮濮嬪畨瑁呫7銆佽缃畆oot鐢ㄦ埛瀵嗙爜銆8銆佸畨瑁呮垚鍔熷悗閲嶅惎銆9銆佽緭鍏...