Abstract:Lua is a tiny script language. Its good expansibility and integration make it easy to integrate to other languages and then implements all kinds of applications. So it is widely used. This paper designs and realizes a lightweight web server procedure in linux operating system by using lua scripting language and standard c language. Using the Lua scripting language, not only makes a Web server easy to configure and install, but also can run smoothly in those who cannot afford the IIS hosts; it further improves the running speed of the server, and enhance the flexibility and extensibility of the server.