ERP 설치 · 8 min read · Oct 14, 2025

Ubuntu 20.04 LTS에 ERPNext 설치하는 방법

ERPNext는 Python, JavaScript 및 Frappe Framework로 구축된 무료 오픈 소스 ERP 소프트웨어입니다. 제조업체, 유통업체 및 서비스업체에서 사용하는 현대적이고 사용하기 쉬운 무료 비즈니스 시스템입니다. 이는 모든 비즈니스 운영 측면을 관리하는 데 도움이 되는 중소기업을 위해 설계되었습니다. 전 세계 수천 개의 기업에서 ERP 프로세스를 관리하는 데 사용되는 최고의 오픈 소스 ERP 관리 소프트웨어 중 하나입니다.

이 튜토리얼에서는 Ubuntu 20.04 서버에 ERPNext를 설치하는 방법을 설명합니다.

필수 조건

  • Ubuntu 20.04를 실행하는 서버.
  • 서버에 포인팅된 유효한 도메인.
  • 서버에 구성된 루트 비밀번호.

시작하기

시작하기 전에 시스템에 필요한 Python 종속성을 설치해야 합니다. 다음 명령어로 모두 설치할 수 있습니다:

apt-get install python3-dev libffi-dev git python3-pip python3-testresources libssl-dev wkhtmltopdf gcc g++ make -y

Python 종속성을 설치한 후, ERPNext는 프론트엔드에 Node.js도 사용합니다. 다음 명령어로 Node.js 저장소를 추가하세요:

curl -sL https://deb.nodesource.com/setup_12.x | bash -

다음으로, 다음 명령어로 Node.js 및 Redis 서버를 설치하세요:

apt-get install nodejs redis-server -y

두 패키지가 설치되면, 다음 명령어로 Yarn 패키지를 설치하세요:

npm install -g yarn

작업이 완료되면 다음 단계로 진행할 수 있습니다.

MariaDB 데이터베이스 설치 및 구성

기본적으로 MariaDB는 Ubuntu 20.04 기본 저장소에서 사용할 수 있습니다. 다음 명령어로 설치할 수 있습니다:

apt-get install mariadb-server -y

설치가 완료되면, 다음 명령어로 MariaDB를 안전하게 설정하고 MariaDB 루트 비밀번호를 설정하세요:

mysql_secure_installation

다음과 같이 표시된 질문에 모두 답하여 MariaDB 루트 비밀번호를 설정하고 설치를 안전하게 하세요:

Enter current password for root (enter for none):
Set root password? [Y/n] Y
New password:
Re-enter new password:
Remove anonymous users? [Y/n] Y
Disallow root login remotely? [Y/n] Y
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y

MariaDB가 안전하게 설정되면, 다음 명령어로 MariaDB 콘솔에 로그인하세요:

mysql -u root -p

다음으로, 다음 명령어로 MariaDB 인증 플러그인을 변경하세요:

MariaDB [(none)]>USE mysql;  
MariaDB [(none)]>UPDATE user SET plugin='mysql_native_password' WHERE User='root';

다음으로, 권한을 플러시하고 다음 명령어로 MariaDB 셸에서 종료하세요:

MariaDB [(none)]> FLUSH PRIVILEGES;  
MariaDB [(none)]> EXIT;

다음으로, MariaDB Innodb 파일 형식을 Barracuda로 변경해야 합니다. /etc/mysql/mariadb.conf.d/50-server.cnf 파일을 편집하여 수행할 수 있습니다:

nano /etc/mysql/mariadb.conf.d/50-server.cnf

다음 줄을 추가/수정하세요:

[mysqld]
innodb-file-format=barracuda
innodb-file-per-table=1
innodb-large-prefix=1
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci

[mysql]
default-character-set = utf8mb4

파일을 저장하고 닫은 후, 다음 명령어로 MariaDB 서비스를 재시작하여 변경 사항을 적용하세요:

systemctl restart mariadb

ERPNext 설치

이 섹션에서는 ERPNext 사용자 생성, bench 도구 설치 및 시스템에 ERPNext를 설치하는 방법을 보여줍니다.

ERPNext 사용자 생성

먼저, 다음 명령어로 ERPNext를 실행할 새 사용자를 생성하세요:

useradd -m -s /bin/bash erpnext

다음으로, 다음 명령어로 ERPNext의 비밀번호를 설정하세요:

passwd erpnext

다음으로, 다음 명령어로 ERPNext 사용자를 sudo 그룹에 추가하세요:

usermod -aG sudo erpnext

다음으로, ERPNext 사용자로 로그인하고 다음 명령어로 환경 변수를 설정하세요:

su - erpnext  
nano ~/.bashrc

다음 줄을 추가하세요:

PATH=$PATH:~/.local/bin/

파일을 저장한 후, 다음 명령어로 환경 변수를 활성화하세요:

source ~/.bashrc

Bench 도구 설치

먼저, ERPNext 사용자로 디렉토리를 전환하고 다음 명령어로 ERPNext용 디렉토리를 생성하세요:

su - erpnext  
sudo mkdir /opt/bench

다음으로, erpnext 사용자에게 소유권을 설정하세요:

sudo chown -R erpnext:erpnext /opt/bench

다음으로, /opt/bench 디렉토리로 변경하고 Git Hub에서 bench 저장소를 클론하세요:

cd /opt/bench  
git clone https://github.com/frappe/bench bench-repo

다음으로, pip3 명령어를 사용하여 bench repo를 설치하세요:

pip3 install -e bench-repo

설치가 완료되면, 다음 명령어로 frappe 프레임워크를 사용하여 bench 디렉토리를 초기화하세요:

bench init erpnext

다음과 같은 출력을 얻어야 합니다:

? Built js/checkout.min.js
? Built js/dialog.min.js
? Built js/social.min.js
? Built js/web_form.min.js
? Built js/list.min.js
? Built js/chat.js
Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade caniuse-lite browserslist`
? Built css/frappe-rtl.css
? Built css/printview.css
? Built js/bootstrap-4-web.min.js
? Built js/barcode_scanner.min.js
? Built css/list.min.css
? Built css/report.min.css
? Built frappe/css/email.css
? Built js/frappe-recorder.min.js
? Built js/desk.min.js
? Built css/frappe-chat-web.css
? Built js/frappe-web.min.js
? Built css/form.min.css
? Built css/web_form.css
? Built css/desk.min.css
? Built css/frappe-web-b4.css
? Built js/control.min.js
? Built js/form.min.js
? Built js/data_import_tools.min.js
? Built js/report.min.js
?  Done in 111.35s
Done in 113.33s.
SUCCESS: Bench erpnext initialized

ERPNext 사이트 생성

다음으로, erpnext 디렉토리로 변경하고 다음 명령어로 새 ERPNext 사이트를 생성하세요:

cd /opt/bench/erpnext  
bench new-site erp.linuxbuz.com

다음과 같이 MariaDB 루트 비밀번호와 관리자 비밀번호를 제공하라는 메시지가 표시됩니다:

MySQL root password: 

Installing frappe...
Updating DocTypes for frappe        : [========================================] 100%
Updating country info               : [========================================] 100%
Set Administrator password: 
Re-enter Administrator password: 
* Scheduler is disabled *
Current Site set to erp.linuxbuz.com

이 시점에서 ERPNext가 시스템에 설치되었습니다.

생산 환경을 위한 ERPNext 구성

다음으로, ERPNext 프로세스를 관리하기 위해 Supervisor를 설치하고 Nginx를 리버스 프록시로 설치해야 합니다.

먼저, ERPNext 사용자로 변경하고 다음 명령어로 Supervisor와 Nginx를 설치하세요:

su - erpnext  
sudo apt-get install supervisor nginx -y

다음으로, 다음 명령어로 frappe-bench를 설치하세요:

sudo pip3 install frappe-bench

다음으로, /opt/bench/erpnext 디렉토리로 변경하고 다음 명령어로 생산 환경을 위한 ERPNext를 설정하세요:

cd /opt/bench/erpnext  
sudo /home/erpnext/.local/bin/bench setup production erpnext

ERPNext가 구성되면 다음과 같은 출력을 보게 됩니다:

PLAY RECAP ************************************************************************************************************************************
localhost                  : ok=8    changed=4    unreachable=0    failed=0    skipped=1    rescued=0    ignored=0   

$ sudo systemctl restart supervisor
Port configuration list:

Site erp.linuxbuz.com assigned port: 80
$ /usr/bin/supervisorctl reread
No config updates to processes
$ /usr/bin/supervisorctl update
$ sudo /usr/sbin/nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
$ sudo systemctl reload nginx

이 시점에서 ERPNext가 생산 환경을 위해 Nginx와 함께 구성되었습니다.

ERPNext 웹 UI 접근

이제 웹 브라우저를 열고 URL http://erp.linuxbuz.com을 입력하세요. ERPNext 로그인 페이지로 리디렉션됩니다:

사용자 이름을 Administrator로 입력하고 이전에 설정한 비밀번호를 입력한 후 로그인 버튼을 클릭하세요. 다음 페이지가 표시됩니다:

원하는 언어를 선택하고 다음 버튼을 클릭하세요. 다음 페이지가 표시됩니다:

국가, 시간대, 통화를 선택하고 다음 버튼을 클릭하세요. 다음 페이지가 표시됩니다:

이름, 이메일, 비밀번호를 입력하고 설정 완료 버튼을 클릭하세요. 다음 페이지에서 ERPNext 대시보드를 볼 수 있습니다:

Let’s Encrypt SSL로 ERPNext 보안 설정

먼저, Let’s Encrypt SSL을 설치하고 관리하기 위해 Certbot 클라이언트를 설치해야 합니다. 다음 명령어로 설치할 수 있습니다:

sudo apt-get install certbot python3-certbot-nginx -y

설치가 완료되면, 다음 명령어로 도메인에 대해 Let’s Encrypt SSL을 설치하고 구성하세요:

sudo certbot --nginx -d erp.linuxbuz.com

다음과 같이 이메일을 제공하고 서비스 약관에 동의하라는 메시지가 표시됩니다:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Enter email address (used for urgent renewal and security notices) (Enter 'c' to
cancel): [email protected]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server at
https://acme-v02.api.letsencrypt.org/directory
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(A)gree/(C)ancel: A

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let's Encrypt project and the non-profit
organization that develops Certbot? We'd like to send you email about our work
encrypting the web, EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for erp.linuxbuz.com
Waiting for verification...
Cleaning up challenges
Deploying Certificate to VirtualHost /etc/nginx/conf.d/erpnext.conf

다음으로, HTTP 트래픽을 HTTPS로 리디렉션할지 여부를 선택하세요:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2

2를 입력하고 Enter를 눌러 프로세스를 완료하세요. 다음과 같은 출력을 보게 됩니다:

Redirecting all traffic on port 80 to ssl in /etc/nginx/conf.d/erpnext.conf

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations! You have successfully enabled https://erp.linuxbuz.com

You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=erp.linuxbuz.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/erp.linuxbuz.com/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/erp.linuxbuz.com/privkey.pem
   Your cert will expire on 2020-08-29. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot again
   with the "certonly" option. To non-interactively renew *all* of
   your certificates, run "certbot renew"
 - Your account credentials have been saved in your Certbot
   configuration directory at /etc/letsencrypt. You should make a
   secure backup of this folder now. This configuration directory will
   also contain certificates and private keys obtained by Certbot so
   making regular backups of this folder is ideal.
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le

 - We were unable to subscribe you the EFF mailing list because your
   e-mail address appears to be invalid. You can try again later by
   visiting https://act.eff.org.

이 시점에서, ERPNext 웹사이트가 Let’s Encrypt SSL로 보안 설정되었습니다. 이제 HTTPS 프로토콜로 안전하게 웹사이트에 접근할 수 있습니다.

결론

이 가이드에서는 Ubuntu 20.04에서 Nginx와 함께 ERPNext를 설치하는 방법을 배웠습니다. 또한 Let’s Encrypt SSL로 ERPNext를 보안 설정하는 방법도 배웠습니다. 추가 정보는 ERPNext 문서 페이지를 방문하세요.

Share: X/Twitter LinkedIn

새 게시물을 받은 편지함에서 받기

스팸은 없습니다. 언제든지 구독 해지 가능합니다.