Skip to content

Instantly share code, notes, and snippets.

@avtaniket
Created August 17, 2020 07:48
Show Gist options
  • Save avtaniket/3799c86f225523a182b07d1a25bd78c0 to your computer and use it in GitHub Desktop.
Save avtaniket/3799c86f225523a182b07d1a25bd78c0 to your computer and use it in GitHub Desktop.
AWS centos setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
1. SSH to EC2 server and open/edit below file
vi /etc/environment
2. Add these lines
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
3. Exit terminal and connect again, Done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment