Server con servizi web » Cronologia » Versione 8
Diego Sorrentino, 22-01-2019 15:18
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 | 8 | Diego Sorrentino | [[Server_con_servizi_web#Non-vengono-salvati-i-questionari|Non vengono salvati i questionari]] |
24 | 5 | Diego Sorrentino | [[Server_con_servizi_web#Non-vengono-spedite-le-comunicazioni|Non vengono spedite le comunicazioni]] |
25 | 1 | Diego Sorrentino | |
26 | h2. Il server, per qualche motivo, e' spento |
||
27 | |||
28 | Riaccendere il server. |
||
29 | Entrare come root (o da console, o da remoto e diventare root) e lanciare i seguenti comandi: |
||
30 | 7 | Diego Sorrentino | <pre><code class="c"> |
31 | 1 | Diego Sorrentino | # su - sorrentino |
32 | sorrentino$ cd hsit |
||
33 | sorrentino:~/hsit$ ./files2cache.php (inserisce nella cache di sistema -memcached- i dati piu' usati) |
||
34 | 8 | Diego Sorrentino | sorrentino:~/hsit$ screen (si aprirà una nuova sessione di screen) |
35 | 1 | Diego Sorrentino | ========= START SESSIONE SCREEN============== |
36 | sorrentino:~/hsit$ while true; do ./Routine-update-event-list.php | tee -a Routine-update-event-list.log ; sleep 60; done |
||
37 | 8 | Diego Sorrentino | sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+C (A e C sono in maiuscolo) E SI APRIRÀ UNA NUOVA FINESTRA DI SCREEN |
38 | 1 | Diego Sorrentino | sorrentino:~/hsit$ while true; do ./Routine-notify-subscribers.php | tee -a Routine-notify-subscribers.log ; sleep 60; done |
39 | 8 | Diego Sorrentino | sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+C (A e C sono in maiuscolo) E SI APRIRÀ UNA NUOVA FINESTRA DI SCREEN |
40 | 7 | Diego Sorrentino | sorrentino:~/hsit$ while true; do ./Routine-send-communications.php | tee -a Routine-send-communications.log ; sleep 60; done |
41 | 8 | Diego Sorrentino | sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+C (A e C sono in maiuscolo) E SI APRIRÀ UNA NUOVA FINESTRA DI SCREEN |
42 | sorrentino:~/hsit$ while true; do ./Routine-store-quests.php | tee -a Routine-store-quests.log ; sleep 60; done |
||
43 | 1 | Diego Sorrentino | sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+D (A e D sono in maiuscolo) PER USCIRE DA SCREEN |
44 | ========= END SESSIONE SCREEN============== |
||
45 | sorrentino:~/hsit$ logout |
||
46 | # logout |
||
47 | 7 | Diego Sorrentino | </code></pre> |
48 | 1 | Diego Sorrentino | |
49 | h2. Non si aggiorna la lista terremoti |
||
50 | |||
51 | Collegarsi al server e lanciare i seguenti comandi: |
||
52 | 7 | Diego Sorrentino | <pre><code class="c"> |
53 | 1 | Diego Sorrentino | utente$ su - |
54 | Password: ******* |
||
55 | # su - sorrentino |
||
56 | sorrentino$ screen -r |
||
57 | ========= START SESSIONE SCREEN============== |
||
58 | sorrentino$ PREMERE LA COMBINAZIONE CTRL+A+0 (A maiuscolo e ZERO) PER ACCEDERE ALLA FINESTRA DI AGGIORNAMENTO EVENTI |
||
59 | 8 | Diego Sorrentino | sorrentino:~/hsit$ while true; do ./Routine-update-event-list.php | tee -a Routine-update-event-list.log ; sleep 60; done |
60 | si dovrà trovare questo comando attivo (quindi nessun prompt in attesa di comandi), in caso contrario premere la FRECCETTA SU e lanciare nuovamente il comando |
||
61 | 1 | Diego Sorrentino | sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+D (A e D sono in maiuscolo) PER USCIRE DA SCREEN |
62 | ========= END SESSIONE SCREEN============== |
||
63 | sorrentino:~/hsit$ exit |
||
64 | # logout |
||
65 | utente$ logout |
||
66 | 7 | Diego Sorrentino | </code></pre> |
67 | 1 | Diego Sorrentino | |
68 | h2. Non vengono spedite le mail |
||
69 | |||
70 | Collegarsi al server e lanciare i seguenti comandi: |
||
71 | <pre><code class="c"> |
||
72 | utente$ su - |
||
73 | Password: ******* |
||
74 | # su - sorrentino |
||
75 | sorrentino$ screen -r |
||
76 | ========= START SESSIONE SCREEN============== |
||
77 | 8 | Diego Sorrentino | sorrentino$ PREMERE LA COMBINAZIONE CTRL+A+1 (A maiuscolo e 1) PER ACCEDERE ALLA FINESTRA DI INVIO MAIL |
78 | sorrentino:~/hsit$ while true; do ./Routine-notify-subscribers.php | tee -a Routine-notify-subscribers.log ; sleep 60; done |
||
79 | si dovrà trovare questo comando attivo (quindi nessun prompt in attesa di comandi), in caso contrario premere la FRECCETTA SU e lanciare nuovamente il comando |
||
80 | 5 | Diego Sorrentino | sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+D (A e D sono in maiuscolo) PER USCIRE DA SCREEN |
81 | ========= END SESSIONE SCREEN============== |
||
82 | sorrentino:~/hsit$ exit |
||
83 | # logout |
||
84 | 1 | Diego Sorrentino | utente$ logout |
85 | 7 | Diego Sorrentino | </code></pre> |
86 | 5 | Diego Sorrentino | |
87 | h2. Non vengono spedite le comunicazioni |
||
88 | 1 | Diego Sorrentino | |
89 | Collegarsi al server e lanciare i seguenti comandi: |
||
90 | <pre><code class="c"> |
||
91 | utente$ su - |
||
92 | Password: ******* |
||
93 | # su - sorrentino |
||
94 | sorrentino$ screen -r |
||
95 | ========= START SESSIONE SCREEN============== |
||
96 | 8 | Diego Sorrentino | sorrentino$ PREMERE LA COMBINAZIONE CTRL+A+2 (A maiuscolo e 2) PER ACCEDERE ALLA FINESTRA DI INVIO MAIL |
97 | sorrentino:~/hsit$ while true; do ./Routine-send-communications.php | tee -a Routine-send-communications.log ; sleep 60; done |
||
98 | si dovrà trovare questo comando attivo (quindi nessun prompt in attesa di comandi), in caso contrario premere la FRECCETTA SU e lanciare nuovamente il comando |
||
99 | sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+D (A e D sono in maiuscolo) PER USCIRE DA SCREEN |
||
100 | ========= END SESSIONE SCREEN============== |
||
101 | sorrentino:~/hsit$ exit |
||
102 | # logout |
||
103 | utente$ logout |
||
104 | </code></pre> |
||
105 | |||
106 | h2. Non vengono salvati iquestionari |
||
107 | |||
108 | Collegarsi al server e lanciare i seguenti comandi: |
||
109 | <pre><code class="c"> |
||
110 | utente$ su - |
||
111 | Password: ******* |
||
112 | # su - sorrentino |
||
113 | sorrentino$ screen -r |
||
114 | ========= START SESSIONE SCREEN============== |
||
115 | 7 | Diego Sorrentino | sorrentino$ PREMERE LA COMBINAZIONE CTRL+A+3 (A maiuscolo e 3) PER ACCEDERE ALLA FINESTRA DI INVIO MAIL |
116 | 8 | Diego Sorrentino | sorrentino:~/hsit$ while true; do ./Routine-store-quests.php | tee -a Routine-store-quests.log ; sleep 60; done |
117 | si dovrà trovare questo comando attivo (quindi nessun prompt in attesa di comandi), in caso contrario premere la FRECCETTA SU e lanciare nuovamente il comando |
||
118 | 1 | Diego Sorrentino | sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+D (A e D sono in maiuscolo) PER USCIRE DA SCREEN |
119 | ========= END SESSIONE SCREEN============== |
||
120 | sorrentino:~/hsit$ exit |
||
121 | # logout |
||
122 | 7 | Diego Sorrentino | utente$ logout |
123 | 1 | Diego Sorrentino | </code></pre> |