在 Linux 上使用环境变量配置 SQL Server 设置Configure SQL Server settings with environment variables on Linux
11/04/2019
本文内容
适用于:Applies to: SQL ServerSQL Server(所有支持的版本)
SQL ServerSQL Server (all supported versions) - Linux适用于:Applies to:
SQL ServerSQL Server(所有支持的版本)
SQL ServerSQL Server (all supported versions) - Linux
可在 Linux 上使用多种不同的环境变量配置 SQL Server 2017。You can use several different environment variables to configure SQL Server 2017 on Linux. 这些变量用于两个方案:These variables are used in two scenarios:
可在 Linux 上使用多种不同的环境变量配置 SQL Server 2019。You can use several different environment variables to configure SQL Server 2019 on Linux. 这些变量用于两个方案:These variables are used in two scenarios:
使用 mssql-conf setup 命令配置初始设置。To configure initial setup with the mssql-conf setup command.
提示
If you need to configure SQL Server after these setup scenarios, see Configure SQL Server on Linux with the mssql-conf tool.
环境变量Environment variables
环境变量Environment variable
说明Description
ACCEPT_EULAACCEPT_EULA
将 ACCEPT_EULA 变量设置为任意值,以确认接受 最终用户许可协议。Set the ACCEPT_EULA variable to any value to confirm your acceptance of the End-User Licensing Agreement. SQL Server 映像的必需设置。Required setting for the SQL Server image.
MSSQL_SA_PASSWORDMSSQL_SA_PASSWORD
配置 SA 用户密码。Configure the SA user password.
MSSQL_PIDMSSQL_PID
设置 SQL Server 版本或产品密钥。Set the SQL Server edition or product key. 可能的值包括:Possible values include:
EvaluationEvaluation开发人员Developer
ExpressExpressWebWeb
StandardStandardEnterpriseEnterprise
产品密钥A product key
如果指定产品密钥,则必须采用 #####-#####-#####-#####-##### 格式,其中“#”是数字或字母。If specifying a product ke