4,922
edits
(Created page with "Come si usa") |
(Updating to match new version of source page) |
||
(17 intermediate revisions by 3 users not shown) | |||
Line 21: | Line 21: | ||
== Come ottenerlo == | == Come ottenerlo == | ||
On Microsoft Windows, Apple Mac | On Microsoft Windows, Apple Mac OS X and GNU/Linux, kiwix-serve is packaged and distributed with Kiwix. You simply need to [[Special:MyLanguage/Software|download the Kiwix installer corresponding to your Operating System]]. | ||
We | We newly provide kiwix-serve as part of the Kiwix tools and [https://download.kiwix.org/release/kiwix-tools/ pre-compiled binaries for many systems are available]. | ||
Per altri sistemi devi [[compilation|scaricare e compilare il codice sorgente di kiwix-serve]]. | |||
== Come si usa == | == Come si usa == | ||
Kiwix-serve | Kiwix-serve è disponibile direttamente nel menu di Kiwix "Strumenti > server", chi vuole usarlo da riga di comando deve fare come descritto in seguito. | ||
Prerequisiti: | |||
* kiwix-serve | * Binario di kiwix-serve, disponibile nella cartella di Kiwix | ||
* | * Un file ZIM o un file libreria (puoi usare il file library.xml del tuo profilo utente di Kiwix). | ||
Unix command line (just use kiwix-serve.exe on Microsoft Windows) example to start kiwix-serve with | Unix command line (just use kiwix-serve.exe on Microsoft Windows) example to start kiwix-serve with an XML library file: | ||
<source lang="bash"> | <source lang="bash"> | ||
kiwix-serve --library ~/.www.kiwix.org/kiwix/efrnsupg.default/library.xml | kiwix-serve --library ~/.www.kiwix.org/kiwix/efrnsupg.default/data/library/library.xml | ||
</source> | </source> | ||
Esempio per avviare kiwix-serve con un file ZIM da riga di comando UNIX: | |||
<source lang="bash"> | <source lang="bash"> | ||
kiwix-serve --port=8080 wikipedia.zim | kiwix-serve --port=8080 wikipedia.zim | ||
</source> | </source> | ||
Una volta che kiwix-serve è avviato, chiunque abbia accesso alla rete di questo computer può connettersi. Devi rendere noto l'indirizzo IP del tuo computer (xxx.xxx.xxx.xxx) e ricordare la porta (80 di default) che hai usato, così gli altri avranno bisogno soltanto di scrivere nella barra degli indirizzo del loro browser: | |||
<source lang="bash"> | <source lang="bash"> | ||
http://xxx.xxx.xxx.xxx:80/ | http://xxx.xxx.xxx.xxx:80/ | ||
</source> | </source> | ||
== | == Opzioni == | ||
Kiwix-serve | Kiwix-serve fornisce alcune opzioni: | ||
* --port= | * --port=PORTA per specificare la porta da mettere in ascolto (80 di default) | ||
* --index=foobar. | * --index=foobar.idx per specificare la cartella dell'indice | ||
* --daemon | * --daemon per eseguirlo in background | ||
* --attachToProcess=PID | * --attachToProcess=PID per allegare il processo di kiwix-serve ad altri processi | ||
* --verbose | * --verbose per avere un po' di informazioni | ||
Puoi anche eseguire kiwix-serve senza indice, ma in questo caso non avrai accesso al motore di ricerca fulltext | |||
== Altro == | == Altro == | ||
* [[kiwix-index]] | * [[kiwix-index]] | ||
* [[kiwix-manage]] | * [[kiwix-manage]] | ||
* [[kiwix-plug]] | * [[kiwix-plug]] | ||
* [http://kv5r.com/computers/offline-dictionary-server/ How-to setup kiwix.exe as a Windows service] |
edits