iT邦幫忙

2024 iThome 鐵人賽

DAY 2
0

Day2 Environment

今天來裝一下程式, 進入資料庫 shell 的步驟的設定留在下一篇(怕篇幅太大)

環境

  1. OS: Ubuntu Linux 24 (OS安裝不是此系列重點故先忽略)
  2. DB: postgresql 14
  3. dataset: dvdrental
  4. Language: java 21 spring boot

Getting Started

sudo apt update #先更新一下
sudo apt install postgresql #會裝psql12版
#
# Setup the repository
#

# Install the public key for the repository (if not done previously):
curl -fsS https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo gpg --dearmor -o /usr/share/keyrings/packages-pgadmin-org.gpg

# Create the repository configuration file:
sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/packages-pgadmin-org.gpg] https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'

#
# Install pgAdmin
#

# Install for both desktop and web modes:
sudo apt install pgadmin4

上面的連結點開,頁面往下拉有安裝細節,我自己是有裝過 standalone,但後來是先裝 toolbox 後再下載 intellij,如果還沒裝的小夥伴,推薦可以用跟我一樣的方式。

intellij 開發的好處是,java 以及 maven 環境都會內建在 IDE 內,這樣就省去了管理環境的功夫,可以專住在開發,但不是用 intellij 開發也沒問題,本系列文是使用 intellij 為開發的 IDE


上一篇
Day1 介紹
下一篇
Day3 環境設定2
系列文
我獨自升級之資料庫從入門到中階7
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言