当前位置:网站首页>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–不是那么难
边栏推荐
- Too many requests at once, and the database is in danger
- Talk about redis transactions
- QT notes (XXVIII) using qwebengineview to display web pages
- CAS comparison and exchange
- CV领域一代宗师黄煦涛教授86岁冥诞,UIUC专设博士奖学金激励新锐
- Longest substring without repeated characters (Sword finger offer 48)
- 反射学习总结
- Sword finger offer II 039 Histogram maximum rectangular area monotonic stack
- Is flutter easy to learn? How to learn? The most complete introduction and actual combat of flutter in history. Take it away without thanks~
- Nvidia Deepstream 运行延迟,卡顿,死机处理办法
猜你喜欢

Pycharm安装与设置

Fundamentals of software engineering (I)

CV领域一代宗师黄煦涛教授86岁冥诞,UIUC专设博士奖学金激励新锐

CAS comparison and exchange

原子操作类

What kind of experience is it to read other people's code
![[PHP code injection] common injectable functions of PHP language and utilization examples of PHP code injection vulnerabilities](/img/19/9827a5e8becfc9d5bf2f51bddf803e.png)
[PHP code injection] common injectable functions of PHP language and utilization examples of PHP code injection vulnerabilities

What is the London Silver code

The global chip market may stagnate, and China's chip expansion accelerates to improve its self-sufficiency rate against the trend

ThreadLocal之强、弱、软、虚引用
随机推荐
What are the operating modes of the live app? What mode should we choose?
AQS抽象队列同步器
Is flutter easy to learn? How to learn? The most complete introduction and actual combat of flutter in history. Take it away without thanks~
External memory
我想買固收+產品,但是不了解它主要投資哪些方面,有人知道嗎?
Abnormal analysis of pcf8591 voltage measurement data
Why can't the start method be called repeatedly? But the run method can?
老师能给我说一下固收+产品主要投资于哪些方面?
AQS Abstract queue synchronizer
Great God developed the new H5 version of arXiv, saying goodbye to formula typography errors in one step, and the mobile phone can easily read literature
简析国内外电商的区别
CAS comparison and exchange
跨境电商多商户系统怎么选
Redis CacheClient
Interview question: rendering 100000 data solutions
[high concurrency] deeply analyze the callable interface
Overseas warehouse knowledge popularization
反射学习总结
Resolve activity startup - lifecycle Perspective
巧用redis实现点赞功能,它不比mysql香吗?