Common services started from the command prompt
https://www.liquidweb.com/kb/restarting-services-from-the-command-line/
When all services are down it’s probably because the firewall service needs to be started
systemctl enable firewalld
systemctl start firewalld
systemctl status firewalld
https://www.liquidweb.com/kb/how-to-start-and-enable-firewalld-on-centos-7/
How to start CentOS Web Panel
service cwpsrv status
service cwpsrv start
https://www.plothost.com/kb/services-centos-web-panel/
Adding users with root privilatge and no passwords
https://unix.stackexchange.com/questions/174780/centos-7-add-new-user-with-root-privileges
Deleting files and dirs on centos
https://www.cyberciti.biz/faq/how-to-delete-and-remove-files-on-centos-linux/
Delete all files and folder:
rm -rf dir1
Trouble connecting to services? Timing out? Probably the firewall
firewall-cmd --list-ports
firewall-cmd --list-services
firewall-cmd --list-all
firewall-cmd --add-port==132/tcp --permanent
firewall-cmd --reload
https://www.tecmint.com/fix-firewall-cmd-command-not-found-error/
https://stackoverflow.com/questions/24729024/open-firewall-port-on-centos-7
Need SSL with nodjs
https://www.sitepoint.com/configuring-nginx-ssl-node-js/
Occupied 3000 port – killing processes
https://stackoverflow.com/questions/39322089/node-js-port-3000-already-in-use-but-it-actually-isnt
https://stackoverflow.com/questions/14790910/stop-all-instances-of-node-js-server
Install with root
sudo npm install @material-ui/icons --unsafe-perm=true --allow-root
Permissions
sudo chmod -R 757 /var/www
sudo chown -R $USER .* h
Delete all files in directory
rm -rf dir1
Copy all files and subdirs in directory (from ‘test’, into ‘server’)
cp -rf /home/server/folder/test/* /home/server/
Move all files and subdirs in directory (from ‘Downloads’, into ‘Videos’)
mv ~/Downloads/* ~/Videos
Try building your app with ‘next build’ before starting the server
npm run build
How to start/stop/restart/reload ftp (pure-ftpd)
https://www.2daygeek.com/start-stop-restart-enable-reload-pureftpd-server-service-in-linux/
How to load a big SQL file (1. user 2. database 3. file location)
mysql -u your_username -p -D your_databasename < /home/your_centos_user/public_html/sql_uploads/nudecelebrityhub7.sql
(Next enter your database password)