我有一个public List<string> showAllActiveData()
{
List<string> active = new List<string>();
using (sqlConnection = getSqlConnection())
{
sqlCommand.Connection = sqlConnection;
sqlCommand.CommandText = cmdShowEmployees;
SqlDataReader reader = sqlCommand.ExecuteReader();
while (reader.Read()) {
active.Add(reader[1].ToString());
}
return active;
}
,我创建了维护页面,我在配置中更改了它:
错误文件503 /etc/haproxy/errors/maintenance.html
但是为什么我想在服务休息时强制转换所有用户?如何打开和关闭此模式?这样可能吗?