This article first gives the basic definition of small and medium-sized enterprises and e-commerce, and shows the historical process and present situation of e-commerce development. This paper describes the foundation of e-commerce technology, mainly introduces Internet technology, Web database technology and e-commerce network security technology, and analyzes the requirements of e-commerce system.