Files
frm.so/serveradmin.md
2026-03-10 21:15:47 +00:00

56 lines
1.0 KiB
Markdown

# ssh
ssh root@167.172.247.123
# certs
certbot --nginx -d comalyr.com -d ...
# Code Server
curl -fsSL https://code-server.dev/install.sh | sh
pm2 start code-server --name code
cat ~/.config/code-server/config.yaml
# pm2
## For Running the Servers
## start your app
pm2 start "npm run start" --name comalyr
## see running processes
pm2 list
## view logs
pm2 logs
pm2 logs comalyr
## restart
pm2 restart comalyr
## stop
pm2 stop comalyr
## save all current processes to be run on startup
pm2 save
# nginx
tail -f /var/log/nginx/access.log
tail -f /var/log/nginx/error.log
cat /var/log/nginx/access.log
## list config
cat /etc/nginx/sites-available/norn
nano /etc/nginx/sites-available/norn
## restart
systemctl restart nginx
# Postgres
systemctl status postgresql
# debugging
curl http://localhost:8080
curl -v https://comalyr.com 2>&1 | head -30
this will list out the process of connecting