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