Server con servizi web » Cronologia » Versione 7
Diego Sorrentino, 16-01-2019 09:54
1 | 1 | Diego Sorrentino | h1. Server con servizi web |
---|---|---|---|
2 | |||
3 | _Server_: terremoto-web.webfarm.rm.ingv.it |
||
4 | _IP_: 192.168.0.11 |
||
5 | _Situato_: CED CORDIS, armadio in fondo, al centro |
||
6 | |||
7 | Utenti CSI presenti, accesso con chiave SSH: |
||
8 | * ficeli |
||
9 | * sbarra |
||
10 | * sensale |
||
11 | * sorrentino |
||
12 | * vazzoler |
||
13 | * zanolin |
||
14 | |||
15 | La password di root si trova nel keepass del CSI, al percorso: |
||
16 | @ServerINGV -> WebFarm -> HaiSentitoIlTerremoto -> HaiSentitoIlTerremoto Web -> Console root@ |
||
17 | |||
18 | I problemi che sono ricorsi piu' spesso nel tempo sono: |
||
19 | |||
20 | [[Server_con_servizi_web#Il-server-per-qualche-motivo-e-spento|Il server, per qualche motivo, e' spento]] |
||
21 | [[Server_con_servizi_web#Non-si-aggiorna-la-lista-terremoti|Non si aggiorna la lista terremoti]] |
||
22 | [[Server_con_servizi_web#Non-vengono-spedite-le-mail|Non vengono spedite le mail]] |
||
23 | 5 | Diego Sorrentino | [[Server_con_servizi_web#Non-vengono-spedite-le-comunicazioni|Non vengono spedite le comunicazioni]] |
24 | 1 | Diego Sorrentino | |
25 | h2. Il server, per qualche motivo, e' spento |
||
26 | |||
27 | Riaccendere il server. |
||
28 | Entrare come root (o da console, o da remoto e diventare root) e lanciare i seguenti comandi: |
||
29 | 7 | Diego Sorrentino | <pre><code class="c"> |
30 | 1 | Diego Sorrentino | # su - sorrentino |
31 | sorrentino$ cd hsit |
||
32 | 2 | Diego Sorrentino | sorrentino:~/hsit$ ./files2cache.php (inserisce nella cache di sistema -memcached- i dati piu' usati) |
33 | sorrentino:~/hsit$ screen (si aprira' una nuova sessione di screen) |
||
34 | 1 | Diego Sorrentino | ========= START SESSIONE SCREEN============== |
35 | 7 | Diego Sorrentino | sorrentino:~/hsit$ while true; do ./Routine-update-event-list.php | tee -a Routine-update-event-list.log ; sleep 60; done |
36 | 1 | Diego Sorrentino | sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+C (A e C sono in maiuscolo) E SI APRIRA' UNA NUOVA FINESTRA DI SCREEN |
37 | 7 | Diego Sorrentino | sorrentino:~/hsit$ while true; do ./Routine-notify-subscribers.php | tee -a Routine-notify-subscribers.log ; sleep 60; done |
38 | 5 | Diego Sorrentino | sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+C (A e C sono in maiuscolo) E SI APRIRA' UNA NUOVA FINESTRA DI SCREEN |
39 | 7 | Diego Sorrentino | sorrentino:~/hsit$ while true; do ./Routine-send-communications.php | tee -a Routine-send-communications.log ; sleep 60; done |
40 | 1 | Diego Sorrentino | sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+D (A e D sono in maiuscolo) PER USCIRE DA SCREEN |
41 | ========= END SESSIONE SCREEN============== |
||
42 | sorrentino:~/hsit$ logout |
||
43 | # logout |
||
44 | 7 | Diego Sorrentino | </code></pre> |
45 | 1 | Diego Sorrentino | |
46 | h2. Non si aggiorna la lista terremoti |
||
47 | |||
48 | Collegarsi al server e lanciare i seguenti comandi: |
||
49 | 7 | Diego Sorrentino | <pre><code class="c"> |
50 | 1 | Diego Sorrentino | utente$ su - |
51 | Password: ******* |
||
52 | # su - sorrentino |
||
53 | sorrentino$ screen -r |
||
54 | ========= START SESSIONE SCREEN============== |
||
55 | sorrentino$ PREMERE LA COMBINAZIONE CTRL+A+0 (A maiuscolo e ZERO) PER ACCEDERE ALLA FINESTRA DI AGGIORNAMENTO EVENTI |
||
56 | 7 | Diego Sorrentino | sorrentino@terremoto-web:~/hsit$ while true; do ./Routine-update-event-list.php | tee -a Routine-update-event-list.log ; sleep 60; done |
57 | 1 | Diego Sorrentino | si dovra' trovare questo comando attivo (quindi nessun prompt in attesa di comandi), in caso contrario premere la FRECCETTA SU e lanciare nuovamente il comando |
58 | sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+D (A e D sono in maiuscolo) PER USCIRE DA SCREEN |
||
59 | ========= END SESSIONE SCREEN============== |
||
60 | sorrentino:~/hsit$ exit |
||
61 | # logout |
||
62 | utente$ logout |
||
63 | 7 | Diego Sorrentino | </code></pre> |
64 | 1 | Diego Sorrentino | |
65 | h2. Non vengono spedite le mail |
||
66 | |||
67 | Collegarsi al server e lanciare i seguenti comandi: |
||
68 | 7 | Diego Sorrentino | <pre><code class="c"> |
69 | 1 | Diego Sorrentino | utente$ su - |
70 | Password: ******* |
||
71 | # su - sorrentino |
||
72 | sorrentino$ screen -r |
||
73 | ========= START SESSIONE SCREEN============== |
||
74 | sorrentino$ PREMERE LA COMBINAZIONE CTRL+A+2 (A maiuscolo e 2) PER ACCEDERE ALLA FINESTRA DI INVIO MAIL |
||
75 | 7 | Diego Sorrentino | sorrentino@terremoto-web:~/hsit$ while true; do ./Routine-notify-subscribers.php | tee -a Routine-notify-subscribers.log ; sleep 60; done |
76 | 5 | Diego Sorrentino | si dovra' trovare questo comando attivo (quindi nessun prompt in attesa di comandi), in caso contrario premere la FRECCETTA SU e lanciare nuovamente il comando |
77 | sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+D (A e D sono in maiuscolo) PER USCIRE DA SCREEN |
||
78 | ========= END SESSIONE SCREEN============== |
||
79 | sorrentino:~/hsit$ exit |
||
80 | # logout |
||
81 | 1 | Diego Sorrentino | utente$ logout |
82 | 7 | Diego Sorrentino | </code></pre> |
83 | 5 | Diego Sorrentino | |
84 | h2. Non vengono spedite le comunicazioni |
||
85 | |||
86 | Collegarsi al server e lanciare i seguenti comandi: |
||
87 | 7 | Diego Sorrentino | <pre><code class="c"> |
88 | 5 | Diego Sorrentino | utente$ su - |
89 | Password: ******* |
||
90 | # su - sorrentino |
||
91 | sorrentino$ screen -r |
||
92 | ========= START SESSIONE SCREEN============== |
||
93 | sorrentino$ PREMERE LA COMBINAZIONE CTRL+A+3 (A maiuscolo e 3) PER ACCEDERE ALLA FINESTRA DI INVIO MAIL |
||
94 | 7 | Diego Sorrentino | sorrentino@terremoto-web:~/hsit$ while true; do ./Routine-send-communications.php | tee -a Routine-send-communications.log ; sleep 60; done |
95 | 1 | Diego Sorrentino | si dovra' trovare questo comando attivo (quindi nessun prompt in attesa di comandi), in caso contrario premere la FRECCETTA SU e lanciare nuovamente il comando |
96 | sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+D (A e D sono in maiuscolo) PER USCIRE DA SCREEN |
||
97 | ========= END SESSIONE SCREEN============== |
||
98 | sorrentino:~/hsit$ exit |
||
99 | # logout |
||
100 | utente$ logout |
||
101 | 7 | Diego Sorrentino | </code></pre> |