CentOS Stream 9にBunをインストールする

環境
CentOS Stream release 9

操作方法
1.Bunをインストールします

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# curl https://bun.sh/install | bash
Manually add the directory to ~/.bashrc (or similar):
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
To get started, run:
bun --help
# curl https://bun.sh/install | bash 略 Manually add the directory to ~/.bashrc (or similar): export BUN_INSTALL="$HOME/.bun" export PATH="$BUN_INSTALL/bin:$PATH" To get started, run: bun --help
# curl https://bun.sh/install | bash
略
Manually add the directory to ~/.bashrc (or similar):
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"

To get started, run:

bun --help

2.環境PATHを設定します
# nano $HOME/.bashrc
以下の内容を記述します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
export BUN_INSTALL="/home/arkuser/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
export BUN_INSTALL="/home/arkuser/.bun" export PATH="$BUN_INSTALL/bin:$PATH"
export BUN_INSTALL="/home/arkuser/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"

変更内容を反映します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# source $HOME/.bashrc
# source $HOME/.bashrc
# source $HOME/.bashrc

3.Firewallを設定します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo firewall-cmd --add-port=3000/tcp --zone=public --permanent
success
# sudo firewall-cmd --reload
success
# sudo firewall-cmd --add-port=3000/tcp --zone=public --permanent success # sudo firewall-cmd --reload success
# sudo firewall-cmd --add-port=3000/tcp --zone=public --permanent
success

# sudo firewall-cmd --reload
success

 

CentOS Stream 9

Posted by arkgame