"The situation is extremely unpredictable and uncertain," the German foreign ministry said. "German nationals are at increased risk of kidnapping and attacks."
The United States evacuated its Libyan embassy staff under air cover yesterday as they faced a "real risk" from fierce fighting around Tripoli airport, Secretary of State John Kerry said.
The airport was closed on July 13 following clashes between armed groups in the area.
Britain later updated its advice to warn against travel to Libya, and told those already there to leave.
More From This Section
"British nationals in Libya should leave now by commercial means."
Britain's embassy will remain open but with reduced staff, and its ability to provide consular assistance "is very limited," the Foreign Office said.
The ministry warned of a high threat of terrorism, noting that a number of foreign nationals have been shot dead in recent months.
It told those still in Libya, believed to number between 100 and 300, to avoid demonstrations or large crowds and to "keep a low profile".
France has told its nationals to remain cautious and strongly advised against travel to Benghazi, while the Dutch, Czech, Maltese and Austrian foreign ministries have ongoing advice not to travel to Libya.
Sweden, Denmark, Finland and Norway have all also advised against travel, while Sweden has also told its citizens to leave Benghazi.
Spain's foreign ministry "very strongly" recommends that all Spaniards leave Libya "immediately" and Switzerland has warned citizens that it would find it difficult to rescue them should the situation deteriorate.
Austria, Italy and Portugal have all warned nationals against travelling around the country, with Austria saying that the risk of terrorist attack was particularly high in Benghazi.