It’s best to rent a car or be ready to pay for taxis for a day at the beach. You can’t walk to any from town because the city is on a high bluff and the beaches are far below. The best beaches are south of the city. Below are three local favorites.
Here’s a beach blog in Spanish that also includes beaches north of Lima.