Apache-Mysql-Samba

Apache

sudo apt update
sudo apt install apache2
sudo systemctl status apache2
  • Start: sudo systemctl start apache2
  • Stopsudo systemctl stop apache2
  • Restartsudo 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 update
sudo apt install mysql-server

sudo service mysql status
sudo service mysql restart
sudo apt install net-tools

sudo mysql_secure_installation

sudo mysql -u root

Samba

sudo apt update
sudo apt install samba -y

 

sudo mkdir -p /home/youruser/myshare
sudo 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

Tags:

Comments

Lascia un commento