Eva*_*oll 2 sql-server linux configuration
该实用程序mssql-conf中/opt/mssql/bin/mssql-conf有设定list,它告诉你可能的密钥,
$ sudo ./mssql-conf list
control.alternatewritethrough Enable optimized write through flush for O_DSYNC requests
control.hestacksize Host extension stack size in KB
control.writethrough Use O_DSYNC for file flag write through requests
coredump.captureminiandfull Capture both mini and full core dumps
coredump.coredumptype Core dump type to capture: mini, miniplus, filtered, full
filelocation.defaultbackupdir Default directory for backup files
filelocation.defaultdatadir Default directory for data files
filelocation.defaultdumpdir Default directory for crash dump files
filelocation.defaultlogdir Default directory for log files
filelocation.errorlogfile Error log file location
filelocation.masterdatafile Master database data file location
filelocation.masterlogfile Master database log file location
hadr.hadrenabled Allow SQL Server to use availability groups for high availability and disaster recovery
language.lcid Locale identifier for SQL Server to use (e.g. 1033 for US - English)
memory.memorylimitmb SQL Server memory limit (megabytes)
network.forceencryption Force encryption of incoming client connections
network.forcesecureldap Force using LDAPS to contact domain controller
network.ipaddress IP address for incoming connections
network.kerberoskeytabfile Kerberos keytab file location
network.tcpport TCP port for incoming connections
network.tlscert Path to certificate file for encrypting incoming client connections
network.tlsciphers TLS ciphers allowed for encrypted incoming client connections
network.tlskey Path to private key file for encrypting incoming client connections
network.tlsprotocols TLS protocol versions allowed for encrypted incoming client connections
sqlagent.databasemailprofile SQL Agent Database Mail profile name
sqlagent.enabled Enable or disable SQLAgent
sqlagent.errorlogfile SQL Agent log file path
sqlagent.errorlogginglevel SQL Agent logging level bitmask - 1=Errors, 2=Warnings, 4=Info
telemetry.customerfeedback Telemetry status
telemetry.userrequestedlocalauditdirectory Directory for telemetry local audit cache
Run Code Online (Sandbox Code Playgroud)
我如何获得这些值?
没有命令行选项可以查看实际设置的值,现在您必须自己检查文件
cat /var/opt/mssql/mssql.conf
Run Code Online (Sandbox Code Playgroud)
但是,它不显示默认值。股票,它有两个选择。一为sqlagent.enabled一为EULA.accepteula。如果您像禁用 CEIP那样更改这些值之一,
$ sudo /opt/mssql/bin/mssql-conf set telemetry.customerfeedback false
Run Code Online (Sandbox Code Playgroud)
您的 conf 文件将如下所示,
$ cat /var/opt/mssql/mssql.conf
[EULA]
accepteula = Y
[sqlagent]
enabled = false
[telemetry]
customerfeedback = false
Run Code Online (Sandbox Code Playgroud)