React/Next.jsのプロセスをVPSサーバで起動する/停止する

React/Next.jsのプロセスをVPSサーバで起動する/停止する

$ sudo npm install

up to date, audited 123 packages in 804ms

43 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
$  sudo npm run build

> frontend@0.1.0 build
> next build

   ▲ Next.js 15.3.4

   Creating an optimized production build ...
 ? Compiled successfully in 2000ms
 ? Linting and checking validity of types    
 ? Collecting page data    
 ? Generating static pages (5/5)
 ? Collecting build traces    
 ? Finalizing page optimization    

Route (app)                                 Size  First Load JS    
┌ ○ /                                    45.1 kB         146 kB
└ ○ /_not-found                            977 B         102 kB
+ First Load JS shared by all             101 kB
  ├ chunks/4bd1b696-1962bfe149af46cd.js  53.2 kB
  ├ chunks/684-11131023a922e922.js       45.9 kB
  └ other shared chunks (total)          1.92 kB


○  (Static)  prerendered as static content
$ ps -aux | grep next
root     2709693 45.2  4.1 14438216 167616 ?     Rl   Jun28 1100:43 next-server (v15.3.4)
root     2717834  0.0  4.5 14625700 182188 ?     Sl   05:26   0:01 next-server (v15.3.4)
alma     2718170  0.0  0.0   6404  2304 pts/2    S+   06:03   0:00 grep --color=auto next
$ sudo kill -9 2709693 2717834
$  sudo PORT=3100 npm run start &
[1] 2718179
[alma@ik1-418-41125 oracle-next-app]$ 
> frontend@0.1.0 start
> next start

   ▲ Next.js 15.3.4
   - Local:        http://localhost:3100
   - Network:      http://**************:3100

 ? Starting...
 ? Ready in 482ms
 株式会社 iPLUS ONE