5,012
edits
(Created page with "Opcions") |
(Updating to match new version of source page) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
[[File:Two_kiwix-plugs.jpg|right|thumb|With [[Kiwix-plug]], kiwix-serve runs on pretty small hardwares]] | [[File:Two_kiwix-plugs.jpg|right|thumb|With [[Kiwix-plug]], kiwix-serve runs on pretty small hardwares]] | ||
'''Kiwix-serve is a ZIM compatible Web server.''' With | '''Kiwix-serve is a ZIM compatible Web server.''' With its help you can deliver ZIM file content over your network. | ||
Based on the well known HTTP protocol, kiwix-serve allows you to share the [[Special:MyLanguage/Wikipedia_in_all_languages|ZIM files available]] on your computer easily with others connected to your network. You simply need to start kiwix-serve and your content will be available for anybody through their own Web browser. | Based on the well known HTTP protocol, kiwix-serve allows you to share the [[Special:MyLanguage/Wikipedia_in_all_languages|ZIM files available]] on your computer easily with others connected to your network. You simply need to start kiwix-serve and your content will be available for anybody through their own Web browser. | ||
Line 21: | Line 21: | ||
== Get it == | == Get it == | ||
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]. | ||
For other systems, you will have to [[compilation|download and compile kiwix-serve source code on your own]]. | For other systems, you will have to [[compilation|download and compile kiwix-serve source code on your own]]. | ||
Line 32: | Line 32: | ||
Prerequisites: | Prerequisites: | ||
* kiwix-serve binary, available in the Kiwix application directory | * kiwix-serve binary, available in the Kiwix application directory | ||
* A ZIM file or a library file (you can use the library.xml file available in your Kiwix | * A ZIM file or a library file (you can use the library.xml file available in your Kiwix data directory). | ||
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> | ||
Line 44: | Line 44: | ||
</source> | </source> | ||
Once kiwix-serve is started, anyone with access to this computer over the network, will be able to connect to it. You need to retrieve the IP (xxx.xxx.xxx.xxx) of your computer and remember the port (per default 80) you have used and then people will only have to type in their browser address bar: | |||
<source lang="bash"> | <source lang="bash"> | ||
http://xxx.xxx.xxx.xxx:80/ | http://xxx.xxx.xxx.xxx:80/ | ||
Line 52: | Line 52: | ||
Kiwix-serve provides a few options: | Kiwix-serve provides a few options: | ||
* --port=PORT to specify the port you want to open for listening (per default 80) | * --port=PORT to specify the port you want to open for listening (per default 80) | ||
* --index=foobar. | * --index=foobar.idx to specify a fulltext index directory | ||
* --daemon to execute the software in background | * --daemon to execute the software in background | ||
* --attachToProcess=PID to attach kiwix-serve process to other process | * --attachToProcess=PID to attach kiwix-serve process to other process | ||
Line 59: | Line 59: | ||
You can also run kiwix-serve without index, but in this case you won't have access to the fulltext search engine. | You can also run kiwix-serve without index, but in this case you won't have access to the fulltext search engine. | ||
== | == Vegeu també == | ||
* [[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