再說說erlang的模塊熱更新

前面的文章有講過erlang熱更新,只是大概介紹,現在再深入一點講erlang的模塊熱更新。erlang的熱更新是模塊級別的,就是一個模塊一個模塊更新的。 熱更新是什麼,就是在不停止系統的情況下對運行的代碼進行替換。 如何進行熱更新? c(Mod) -> compile:file(Mod), code:purge(Mod), code:load_file(Mod). 以上就是shell c(
相關文章
相關標籤/搜索