Actions
h1. Disabilitare avvio server
Sul pc di sviluppo non vogliamo avere tutti i servizi avviati di default quando accendiamo il computer.
h2. MYSQL
--- Non funziona
Modificare le righe all'inizio del file
/ets/init/mysql.conf
e commentare la riga che riporta @start on@ con # spazio
description "MySQL 5.7 Server" author "Mario Limonciello " # start on runlevel [2345] stop on starting rc RUNLEVEL=[016]
$ sudo update-rc.d mysql disable
Per avviare manualmente il server occore
$ sudo service mysql start
h2. Apache 2
$ sudo update-rc.d apache2 disable
h2. RabbitMQ
sudo update-rc.d rabbitmq-server disable
h2. Virtualbox
sudo update-rc.d virtualbox disable
h2. Docker
sudo update-rc.d docker disable
h2. Postgresql
sudo update-rc.d postgresql disable
h2. Script per il riavvio
#! /bin/bash ## Start Mysql sudo service mysql start ## Start Apache2 sudo service apache2 start ## Start RabbitMQ sudo service rabbitmq-server start ## Start Virtualbox sudo service virtualbox start ## Start Docker sudo service docker start ## Start Postgresql sudo service postgresql start
Updated by Gabor Murray almost 7 years ago · 8 revisions