当前位置:网站首页>CentOS8-postgresql初始化时报错:initdb: error: invalid locale settings; check LANG and LC_* environment
CentOS8-postgresql初始化时报错:initdb: error: invalid locale settings; check LANG and LC_* environment
2022-06-27 15:23:00 【遗忘的迟来的风】

解决办法(设置英文版字体编码):
# vim /etc/profile.d/locale.sh
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_COLLATE=C
export LC_CTYPE=en_US.UTF-8
# vim /etc/locale.conf
LANG=en_US.UTF-8
# vim /etc/sysconfig/i18n(该步骤可以先不执行,万一其它步骤执行完还不行再考虑添加)
LANG=en_US.UTF-8
# vim /etc/environment
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
source /etc/profile.d/locale.sh
参考文章:
Centos: 解决系统编码 locale 的 LC_CTYPE / LC_ALL 问题 – 源码巴士
CentOS8 -bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) 解决方法 | Linux–不是那么难
边栏推荐
- 机械硬盘和ssd固态硬盘的原理对比分析
- Teach you how to realize pynq-z2 bar code recognition
- Multithreading Basics (III)
- Resolve activity startup - lifecycle Perspective
- 避孕套巨头过去两年销量下降40% ,下降原因是什么?
- [digital signal processing] discrete time signal (discrete time signal knowledge points | signal definition | signal classification | classification according to certainty | classification according t
- 2022-2-15 learning the imitated Niuke project - Section 5 shows comments
- Tsinghua & Shangtang & Shanghai AI & CUHK proposed Siamese image modeling, which has both linear probing and intensive prediction performance
- [interview questions] common interview questions (I)
- Too many requests at once, and the database is in danger
猜你喜欢

Massive data! Second level analysis! Flink+doris build a real-time data warehouse scheme

Leetcode 724. 寻找数组的中心下标(可以,一次过)

ThreadLocal之强、弱、软、虚引用

R language error

Why can't the start method be called repeatedly? But the run method can?

What are the operating modes of the live app? What mode should we choose?

Use GCC to generate an abstract syntax tree "ast" and dump it to Dot file and visualization

阅读别人的代码,是一种怎样的体验

跨境电商多商户系统怎么选
机械硬盘和ssd固态硬盘的原理对比分析
随机推荐
Computer screen splitting method
Can the teacher tell me what the fixed income + products are mainly invested in?
At a time of oversupply of chips, China, the largest importer, continued to reduce imports, and the United States panicked
关于 Spartacus 的 sitemap.xml 问题
我想买固收+产品,但是不了解它主要投资哪些方面,有人知道吗?
In the past, domestic mobile phones were arrogant in pricing and threatened that consumers would like to buy or not, but now they have plummeted by 2000 for sale
Interpretation of new version features of PostgreSQL 15 (including live Q & A and PPT data summary)
volatile与JMM
Programming skills: script scheduling
Naacl 2022 | TAMT: search the transportable Bert subnet through downstream task independent mask training
What are the operating modes of the live app? What mode should we choose?
HTTP Caching Protocol practice
请求一下子太多了,数据库危
Integration of entry-level SSM framework based on XML configuration file
Multithreading Basics (III)
跨境电商多商户系统怎么选
2022-2-15 learning the imitated Niuke project - Section 5 shows comments
522. 最长特殊序列 II / 剑指 Offer II 101. 分割等和子集
Référence forte, faible, douce et virtuelle de threadlocal
[WUSTCTF2020]girlfriend