It is worthwhile pointing out at the very beginning that setting up live mirrors for websites like Wikipedia is strongly discouraged. As described in here, live mirrors put more strains on WMF servers. However, if it is intended for private use, here are the steps to create such mirrors on your own server. Use at your own risks.
How to set up a local Wikipedia server using kiwix-serve
Suppose you are running your laptop without Internet connection, but somehow still want to look up a specific topic in Wikipedia. For Linux users, one way to work around is to set up a local server using
kiwix-serve to serve offline contents. Here are the steps. Note that Internet is required to download the program and associated ZIM files.