Apache
sudo apt updatesudo apt install apache2sudo systemctl status apache2- Start:
sudo systemctl start apache2 - Stop:
sudo systemctl stop apache2 - Restart:
sudo systemctl restart apache2 - Reload (config changes):
sudo systemctl reload apache2 - Enable (start on boot):
sudo systemctl enable apache2 - Disable (don’t start on boot):
sudo systemctl disable apache2
Mysql
sudo apt updatesudo apt install mysql-serversudo service mysql status
sudo service mysql restartsudo apt install net-tools
sudo mysql_secure_installation
sudo mysql -u root Samba
sudo apt updatesudo apt install samba -y
sudo mkdir -p /home/youruser/mysharesudo nano /etc/samba/smb.conf
sudo adduser youruser
sudo smbpasswd -a youruser
--------------------------[ShareName]
path = /srv/samba/sharename
browsable = yes
writable = yes
guest ok = no
read only = no
valid users = youruser
----------------------------------sudo systemctl restart smbd nmbd 
Lascia un commento
Devi essere connesso per inviare un commento.