Rocky LinuxΒΆ
PM2 [1][2] (Cache)ΒΆ
Take Excalith Start Page as an example:
pm2 start npm --name "excalith-start-page" --watch -- start
Used rsync
to update:
rsync -r "/cygdrive/c/your_path/excalith-start-page/" "root@your_host:/var/www/excalith-start-page" --include={'.*'} --exclude={'.github','.next/','build/','node_modules/','.git'}
Create a new VirtualHost configuration with subdomain names:
sudo vim /etc/httpd/conf.d/sub.domain.com.conf
<VirtualHost *:80>
ServerName www.sub.domain.com
ServerAlias sub.domain.com
ErrorLog /var/log/httpd/sub.domain.com-error.log
CustomLog /var/log/httpd/sub.domain.com-access.log combined
ProxyPreserveHost On
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
</VirtualHost>
VNC [3][4] (Cache)ΒΆ
sudo dnf update -y
sudo dnf install -y epel-release
sudo dnf groupinstall -y "Xfce" "base-x"
sudo systemctl set-default graphical
sudo reboot
sudo dnf install tigervnc-server
sudo adduser vncuser
sudo passwd vncuser
sudo su - vncuser
sudo dnf install firewalld -y
sudo systemctl enable firewalld
sudo systemctl start firewalld
sudo firewall-cmd --state
firewall-cmd --zone=public --permanent --add-service=vnc-server
firewall-cmd --reload
su vncuser
vim ~/.vnc/config
session=xfce
geometry=1280x800
# localhost
# alwaysshared
sudo systemctl start firewalld
If you need to kill the process:
pf -fu vncuser
kill -9 vncuser
On PC [5]:
scoop install tightvnc
tvnviewer <your_host>::5901 -password=<vncuser_password>