Cách triển khai ứng dụng nextjs lên ubuntu
Tham khảo How to deploy NextJS app on Ubuntu 22.04 | BRDN Sử dụng nginx fastpass proxy ứng dụng nextjs được mở bởi pm2 How to deploy NextJS app on Ubuntu 22.04 In this article I’ll show how to deploy NextJS app on Ubuntu 22.04. NextJS allows to create fast, SEO-optimized ReactJS apps with easy configuration. More on NextJS: - https://youtu.be/Sklc_fQBmcs - https://youtu.be/BILxV_vrZO0 Env: Ubuntu 22.04 NodeJS 14 NPM 6 NextJS 12.1.6 Initial server setup When you create a new Ubuntu server, you should make initial setup to increase security, and to make interaction with the server more comfortable. Access the server using root user ssh root@server_ip ssh is a utility for remote intercation with the server. root is a default user that created in Ubuntu. It has all privileges and can make destructive changes to the system. Under root you can delete important system files, etc. So, it’s reasonable to create a user with shortened privileges for day-to-day admini...