After that, he began serving as the minister of education of Shaanxi Province, where he was just and strict to local scholars.
In 1889, he became an imperial oversight advisor in Zhejiang, during which he was straightforward about his advice and strictly supervised the salary of the officials, which was praised by the public.
[1] In 1896, he was appointed the mayor of Hangzhou, where he fired corrupt officials, communicated with the people and banned unlawful taxation.
In 1899, he founded Yangzheng College (養正書塾)[5] as the province's first secondary education institute.
Lin Qi's friend Gao Fengqi (高鳳岐), who later served as the mayor of Wuzhou with good reputation, was also buried in the Altar by Hangzhou people.