He grew up in a family with a "literary reputation" since the Ming and Qing Dynasties. He was "enlightened at a young age" and started reading from his mother at the age of four. He was able to write poems at the age of nine.
In the fifty-fourth year of Qianlong (1789), he became a scholar at the age of fifteen.
In the fifty-ninth year of Qianlong (1794), he won the imperial examination at the age of twenty.
In the seventh year of Jiaqing (1802), he became a Jinshi at the age of 28 and was awarded the title of Shujishi of the Hanlin Academy.
In the 10th year of Jiaqing (1805), he began to serve as the director of the Ministry of Rites.
In the twelfth year of Jiaqing (1807), he gave a lecture at Nanpu Academy in Zhangpu City.
In the 13th year of Jiaqing (1808), he entered the shogunate of Zhang Shicheng, governor of Fujian, and had affairs with Lin Zexu.
In the 21st year of Jiaqing (1816), Zhang Jing was selected for the military aircraft examination, and his name was recorded in the first volume.
In the 23rd year of Jiaqing (1818), Zhang Jing was selected as a military aircraft officer and entered the Military Aircraft Department of Zhili.
In the first year of Daoguang (1821), he was promoted to Yuanwailang of the Ministry of Rites, and served as editor and editor of the Qing Dynasty Tongli Hall and the Inner Court Policies Hall.
In the second year of Daoguang (1822), he was awarded the title of Magistrate of Jingzhou, Hubei Province and concurrently served as a Taoist priest in Jingyi. He was promoted to Huaihaihe River Military Preparation Road, and was transferred to Jiangsu Province as an envoy.
In the fifth year of Daoguang's reign (1825), he managed the General Bureau of Panyun Caograin and served as the inspector of Shandong. The following year, he was transferred to Jiangsu Province as Chief Envoy. He served in Jiangsu for 8 years and served as acting governor four times with outstanding political achievements.
In the eleventh year of Daoguang's reign (1831), there was a major flood in the Yangtze River and Huaihe River. He led his family to donate money and raise funds. In the same year, the Lianhupai Dam was repaired and funds were raised to build water conservancy projects on the Mengdu, Desheng and Bathang rivers.
In April of the twelfth year of Daoguang (1832), I asked him to return to Fuzhou to recuperate.
In the fifteenth year of Daoguang's reign (1835), he was called to Beijing and appointed as the chief envoy of Gansu. The following year, he was promoted to governor of Guangxi and concurrently in charge of academic affairs.
In the 18th year of Daoguang (1838), Shangshu advocated the strict control of opium hoarding areas, emphasizing that "the law must start from the officials", and actively cooperated with Lin Zexu to strictly order Wuzhou and Xunzhou officials to arrest cigarette dealers. Adopt the 10-family continuous guarantee method to prevent repeated planting of opium poppy.
In the 21st year of Daoguang's reign (1841), he personally led troops to defend Wuzhou, increased troops in Xunzhou and Nanning, and transported artillery to support Guangzhou's defense. Zeng Shangshu criticized Qishan for "opening the door to thieves" in Guangdong, praised the people of Sanyuanli for their struggle against the British, and was the first to propose to the court that "taking over Hong Kong should be the first priority." In the same year, he was transferred to the governor of Jiangsu and led troops to Shanghai to join Jiangnan Admiral Chen Huacheng in deploying anti-British troops. He organized regiment training in Baoshan, Shanghai, Chuansha, Taicang, Nanhui, Jiading and other places, and established tight defenses to prevent the British troops from daring to move rashly. In August of the same year, due to the suicide of Yuqian, the governor of Liangjiang, he was ordered to act as the governor of Liangjiang and the salt administration of Lianghuai. A few days later, he was ordered to return to Suzhou to handle grain supplies. The disease occurred in November, so please ask for treatment.
In the first month of the 22nd year of Daoguang (1842), Liang Zhangju and his family lived in Yangzhou. In May, he crossed the Yangtze River south and returned to Pucheng, Fujian. Although he resigned due to illness at this time, he still cared about the country. On the way, I heard that the British army had invaded the Yangtze River, that the governor of Liangjiang, Niu Jian, had fled, and that Zhenjiang had fallen. I felt extremely heavy. After arriving in Pucheng, I also heard that the British wanted to set up a dock in Fuzhou, and Liu Hong'ao, the governor of Fujian, had already approved it. He immediately wrote a letter to Liu Hong'ao, bitterly describing the harm, and pointed out: "If this situation is completed, there will be disadvantages that cannot be described in detail." Liang Zhangju lived in Pucheng for 4 years. In the 26th year of Daoguang's reign (1846), he moved to Yangzhou.
In the twenty-seventh year of Daoguang's reign (1847), his third son Liang Gongchen acted as the prefect of Wenzhou, and Liang Zhangju went to Wenzhou with him. He died of illness in June of the 29th year of Daoguang (1849).