The Hardy-Sobolev inequality with general weights is established, and it is shown that the constant is optimal. The two weights in this inequality are determined by a Bernoulli equation. In addition, the authors obtain the Hardy-Sobolev inequality with general weights and remainder terms. By choosing special weights, it turns to be many versions of the Hardy-Sobolev inequality and the Caffarelli-Kohn-Nirenberg inequality with remainder terms in the literature.