openEuler-22.03-LTS 安装与配置笔记

镜像下载与安装

openEuler下载页

镜像下载

# 下载镜像
wget -c https://repo.openeuler.org/openEuler-22.03-LTS/ISO/x86_64/openEuler-22.03-LTS-x86_64-dvd.iso

openEuler-22.03-LTS-x86_64- 100%[========================================>]   3.40G  4.27MB/s    用时 8m 22ss

2022-06-24 21:33:58 (6.92 MB/s) - 已保存 ‘openEuler-22.03-LTS-x86_64-dvd.iso’ [3646947328/3646947328])
# 下载镜像验证文件
wget -c https://repo.openeuler.org/openEuler-22.03-LTS/ISO/x86_64/openEuler-22.03-LTS-x86_64-dvd.iso.sha256sum

验证镜像完整性

sha256sum openEuler-22.03-LTS-x86_64-dvd.iso
a07952feb2f9f0239143daf6cc061a396e09bbb3e26d8fbf38eeb21d0251bde0  openEuler-22.03-LTS-x86_64-dvd.iso

cat openEuler-22.03-LTS-x86_64-dvd.iso.sha256sum 
a07952feb2f9f0239143daf6cc061a396e09bbb3e26d8fbf38eeb21d0251bde0  openEuler-22.03-LTS-x86_64-dvd.iso

一行命令确认echo "$(cat openEuler-22.03-LTS-x86_64-dvd.iso.sha256sum)" | sha256sum --check

openEuler-22.03-LTS-x86_64-dvd.iso: OK

更新环境变量

追加写入全局配置路径 /etc/profile 写入当前用户配置路径 ~/.bashrc or ~/.zshrc

# HISTORY history 日志添加时间戳;默认的2000条记录上限提高至99999条
export HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S "
export HISTFILESIZE=99999

更新系统

dnf update -y; dnf upgrade -y;

使用neofetch查看系统基本信息

wget -c https://github.com/dylanaraps/neofetch/archive/refs/tags/7.1.0.tar.gz
tar -xvf 7.1.0.tar.gz
cd neofetch-7.1.0
./neofetch

openEuler-22.03-LTS 安装与配置笔记_第1张图片

配置编程环境

# node env 个人习惯把程序环境都放在 /opt 目录下
export PATH=$PATH:/opt/node/bin

# npm global env
export PATH=~/.npm-global/bin:$PATH

# env jdk
JAVA_HOME=/opt/jdk
CLASSPATH=.:$JAVA_HOME/lib.tools.jar
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME CLASSPATH PATH

# env golang
#export PATH=$PATH:/opt/go/bin
export GOROOT=/opt/go
export GOPATH=$HOME/goapp
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin

配置Java编译环境

  • 验证
    openEuler-22.03-LTS 安装与配置笔记_第2张图片

配置 Go 环境

wget -c https://golang.google.cn/dl/go1.18.3.linux-amd64.tar.gz
tar -xvf go1.18.3.linux-amd64.tar.gz

  • 验证 go version

go version go1.18.3 linux/amd64

配置 Node 环境

wget -c https://cdn.npmmirror.com/binaries/node/v18.4.0/node-v18.4.0-linux-x64.tar.xz
tar -xvf node-v18.4.0-linux-x64.tar.xz
mv node-v18.4.0-linux-x64 node

  • 验证 node --version

v18.4.0

配置 Rust 编译环境

curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh

  • 验证 : rustc --version

rustc 1.61.0 (fe5b13d68 2022-05-18)

你可能感兴趣的:(Linux,linux,openEuler)