Ebola appeared in Nigeria when an infected traveler from Liberia arrived in Lagos in July. The consequences of a major outbreak among the 22 million inhabitants of Africa’s largest city could have been catastrophic.