Progetto

Generale

Profilo

Server con servizi web » Cronologia » Versione 3

Diego Sorrentino, 20-07-2018 17:53

1 3 Diego Sorrentino
{{toc}}
2
3 1 Diego Sorrentino
h1. Server con servizi web
4
5
_Server_: terremoto-web.webfarm.rm.ingv.it
6
_IP_: 192.168.0.11
7
_Situato_: CED CORDIS, armadio in fondo, al centro
8
9
Utenti CSI presenti, accesso con chiave SSH:
10
* ficeli
11
* sbarra
12
* sensale
13
* sorrentino
14
* vazzoler
15
* zanolin
16
17
La password di root si trova nel keepass del CSI, al percorso:
18
@ServerINGV -> WebFarm -> HaiSentitoIlTerremoto -> HaiSentitoIlTerremoto Web -> Console root@
19
20
I problemi che sono ricorsi piu' spesso nel tempo sono:
21
22
[[Server_con_servizi_web#Il-server-per-qualche-motivo-e-spento|Il server, per qualche motivo, e' spento]]
23
[[Server_con_servizi_web#Non-si-aggiorna-la-lista-terremoti|Non si aggiorna la lista terremoti]]
24
[[Server_con_servizi_web#Non-vengono-spedite-le-mail|Non vengono spedite le mail]]
25
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
<pre>
31
# su - sorrentino
32
sorrentino$ cd hsit
33 2 Diego Sorrentino
sorrentino:~/hsit$ ./files2cache.php  (inserisce nella cache di sistema -memcached- i dati piu' usati) 
34
sorrentino:~/hsit$ screen  (si aprira' una nuova sessione di screen)
35 1 Diego Sorrentino
========= START SESSIONE SCREEN==============
36
sorrentino:~/hsit$ ./UpdateEventDB-solo-eventi.php >> UpdateEventDB-solo-eventi.log 2>&1
37
sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+C (A e C sono in maiuscolo) E SI APRIRA' UNA NUOVA FINESTRA DI SCREEN
38
sorrentino:~/hsit$ ./UpdateEventDB-solo-mail.php >> UpdateEventDB-solo-mail.log 2>&1
39
sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+D (A e D sono in maiuscolo) PER USCIRE DA SCREEN
40
========= END SESSIONE SCREEN==============
41
sorrentino:~/hsit$ logout
42
# logout
43
</pre>
44
45
h2. Non si aggiorna la lista terremoti
46
47
Collegarsi al server e lanciare i seguenti comandi:
48
<pre>
49
utente$ su - 
50
Password: ******* 
51
# su - sorrentino
52
sorrentino$ screen -r
53
========= START SESSIONE SCREEN==============
54
sorrentino$ PREMERE LA COMBINAZIONE CTRL+A+0 (A maiuscolo e ZERO) PER ACCEDERE ALLA FINESTRA DI AGGIORNAMENTO EVENTI
55
sorrentino@terremoto-web:~/hsit$ ./UpdateEventDB-solo-eventi.php >> UpdateEventDB-solo-eventi.log 2>&1
56
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 
57
sorrentino:~/hsit$ PREMERE LA COMBINAZIONE CTRL+A+D (A e D sono in maiuscolo) PER USCIRE DA SCREEN
58
========= END SESSIONE SCREEN==============
59
sorrentino:~/hsit$ exit
60
# logout
61
utente$ logout
62
</pre>
63
64
65
h2. Non vengono spedite le mail
66
67
Collegarsi al server e lanciare i seguenti comandi:
68
<pre>
69
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
sorrentino@terremoto-web:~/hsit$ ./UpdateEventDB-solo-mail.php >> UpdateEventDB-solo-mail.log 2>&1
76
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
utente$ logout
82
</pre>