当前位置:网站首页>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–不是那么难
边栏推荐
- What kind of experience is it to read other people's code
- Buuctf Misc
- Pri3d: a representation learning method for 3D scene perception using inherent attributes of rgb-d data
- Teach you how to package and release the mofish Library
- Derivation of Halcon camera calibration principle
- [high concurrency] deeply analyze the callable interface
- Redis persistence
- PCL Library - error reporting solution: cmake and Anaconda conflicts during installation
- AQS抽象队列同步器
- 关于 Spartacus 的 sitemap.xml 问题
猜你喜欢

基于SSM的Web网页聊天室系统

Using redis skillfully to realize the like function, isn't it more fragrant than MySQL?

Strong, weak, soft and virtual references of ThreadLocal

What is the London Silver unit

隱私計算FATE-離線預測

Synchronized与锁升级

Buuctf Misc

All you want to know about large screen visualization is here
![[microservices sentinel] hotspot rules | authorization rules | cluster flow control | machine list](/img/42/efebf981888704b3ad42d7d4404aa7.png)
[microservices sentinel] hotspot rules | authorization rules | cluster flow control | machine list

What kind of experience is it to read other people's code
随机推荐
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
How QT sets some areas to be transparent in the background image
Hyperledger Fabric 2. X custom smart contract
Using redis skillfully to realize the like function, isn't it more fragrant than MySQL?
Synchronized and lock escalation
基于Vue+Node+MySQL的美食菜谱食材网站设计与实现
Atomic operation class
PostgreSQL 15新版本特性解读(含直播问答、PPT资料汇总)
2022-2-16 learning the imitated Niuke project - Section 6 adding comments
QT notes (XXVIII) using qwebengineview to display web pages
Buuctf Misc
Redis master-slave replication, sentinel mode, cluster cluster
How is the London Silver point difference calculated
Redis CacheClient
R language objects are stored in JSON
[issue 17] golang's one-year experience in developing Meitu
[advanced MySQL] MTS master-slave synchronization principle and Practice Guide (7)
Programming skills: script scheduling
海量数据!秒级分析!Flink+Doris构建实时数仓方案
Pri3d: a representation learning method for 3D scene perception using inherent attributes of rgb-d data