Linux下/etc/sysconfig/i18n究竟是干啥用的
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux下/etc/sysconfig/i18n究竟是干啥用的相关的知识,希望对你有一定的参考价值。
这是本地区域语言设置的配置文件。i18n的初始配置如下:
LANG="zh_CN.UTF-8"
SUPPORTED="zh_CN.UTF-8:zh_CN:zh"
SYSFONT="latarcyrheb-sun16"
第一行表示当前系统的语言环境变量设置,这里是zh_CN.UTF-8
第二行表示系统支持哪些字符集,没有设置的语言字符集类型会出现乱码
第三行表示系统终端字符的字体,设置的是latarcyrheb-sun16
The /etc/sysconfig/i18n file sets the default language, any supported languages, and the default system font. 参考技术A 里面存放着系统的区域语言设置
我也是刚入门Linux系统,比较难,要一直打命令的- -
spug
cat /etc/redhat-release && uname -a
CentOS Linux release 7.8.2003 (Core)
Linux centos7-1 3.10.0-1127.el7.x86_64
systemctl stop firewalld && systemctl disable firewalld
echo SELINUX=disabled > /etc/sysconfig/selinux
cp -pv /etc/sysctl.conf /etc/sysctl.conf.bak
echo net.ipv4.tcp_syncookies = 1 >> /etc/sysctl.conf
echo net.ipv4.tcp_tw_reuse = 1 >> /etc/sysctl.conf
echo net.ipv4.tcp_tw_recycle = 1 >> /etc/sysctl.conf
echo net.ipv4.tcp_fin_timeout = 30 >> /etc/sysctl.conf
sysctl -p
yum install -y docker-ce
systemctl restart docker && systemctl enable docker
docker --version
Docker version 20.10.8, build 3967b7d
docker pull registry.aliyuncs.com/openspug/spug
mkdir -pv /usr/local/spug 宿主机于容器共享目录
docker run -itd --restart=always \\
--name=spug –p 80:80 \\
-v /usr/local/spug/:/data registry.aliyuncs.com/openspug/spug
docker ps | grep spug
6bcb37271af9 registry.aliyuncs.com/openspug/spug
docker exec -it spug /bin/bash 进入容器
docker exec -it spug sh -c "more /data/spug/spug_api/spug/overrides.py | grep USER"
\'USER\': \'spug\',
docker exec -it spug sh -c "more /data/spug/spug_api/spug/overrides.py | grep PASSWORD"
\'PASSWORD\': \'spug.dev\',
docker exec spug init_spug admin spug.dev 系统初始化
初始化/更新成功
创建用户成功
docker restart spug
admin/spug.dev
lsof -i:80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
docker-pr 3252 root 4u IPv4 64989 0t0 TCP *:http (LISTEN)
以上是关于Linux下/etc/sysconfig/i18n究竟是干啥用的的主要内容,如果未能解决你的问题,请参考以下文章
linux 下获取了/etc/passwd 如何破解root密码
Linux系统下,在 /etc/下找不到 syslog.conf