Progetto

Generale

Profilo

Server con servizi web » Cronologia » Versione 4

Diego Sorrentino, 20-07-2018 17:53

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
24
h2. Il server, per qualche motivo, e' spento
25
26
Riaccendere il server.
27
Entrare come root (o da console, o da remoto e diventare root) e lanciare i seguenti comandi:
28
<pre>
29
# su - sorrentino
30
sorrentino$ cd hsit
31 2 Diego Sorrentino
sorrentino:~/hsit$ ./files2cache.php  (inserisce nella cache di sistema -memcached- i dati piu' usati) 
32
sorrentino:~/hsit$ screen  (si aprira' una nuova sessione di screen)
33 1 Diego Sorrentino
========= START SESSIONE SCREEN==============
34
sorrentino:~/hsit$ ./UpdateEventDB-solo-eventi.php >> UpdateEventDB-solo-eventi.log 2>&1
35
sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+C (A e C sono in maiuscolo) E SI APRIRA' UNA NUOVA FINESTRA DI SCREEN
36
sorrentino:~/hsit$ ./UpdateEventDB-solo-mail.php >> UpdateEventDB-solo-mail.log 2>&1
37
sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+D (A e D sono in maiuscolo) PER USCIRE DA SCREEN
38
========= END SESSIONE SCREEN==============
39
sorrentino:~/hsit$ logout
40
# logout
41
</pre>
42
43
h2. Non si aggiorna la lista terremoti
44
45
Collegarsi al server e lanciare i seguenti comandi:
46
<pre>
47
utente$ su - 
48
Password: ******* 
49
# su - sorrentino
50
sorrentino$ screen -r
51
========= START SESSIONE SCREEN==============
52
sorrentino$ PREMERE LA COMBINAZIONE CTRL+A+0 (A maiuscolo e ZERO) PER ACCEDERE ALLA FINESTRA DI AGGIORNAMENTO EVENTI
53
sorrentino@terremoto-web:~/hsit$ ./UpdateEventDB-solo-eventi.php >> UpdateEventDB-solo-eventi.log 2>&1
54
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 
55
sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+D (A e D sono in maiuscolo) PER USCIRE DA SCREEN
56
========= END SESSIONE SCREEN==============
57
sorrentino:~/hsit$ exit
58
# logout
59
utente$ logout
60
</pre>
61
62
63
h2. Non vengono spedite le mail
64
65
Collegarsi al server e lanciare i seguenti comandi:
66
<pre>
67
utente$ su - 
68
Password: ******* 
69
# su - sorrentino
70
sorrentino$ screen -r
71
========= START SESSIONE SCREEN==============
72
sorrentino$ PREMERE LA COMBINAZIONE CTRL+A+2 (A maiuscolo e 2) PER ACCEDERE ALLA FINESTRA DI INVIO MAIL
73
sorrentino@terremoto-web:~/hsit$ ./UpdateEventDB-solo-mail.php >> UpdateEventDB-solo-mail.log 2>&1
74
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 
75
sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+D (A e D sono in maiuscolo) PER USCIRE DA SCREEN
76
========= END SESSIONE SCREEN==============
77
sorrentino:~/hsit$ exit
78
# logout
79
utente$ logout
80
</pre>