简体   繁体   English

MSSQL:配置文件'/var/opt/mssql/mssql.conf'无法加载(Ubuntu)

[英]MSSQL: The configuration file '/var/opt/mssql/mssql.conf' failed to load (Ubuntu)

I have an issue to install MSSQL on my Linux(Ubuntu 16.04) Server. 我在Linux(Ubuntu 16.04)服务器上安装MSSQL时遇到问题。

I have used the manual from Microsoft but I always fail on the same stage. 我使用过Microsoft的手册,但我总是在同一阶段失败。 Actually, Docker is not an alternative due to Kernal issues. 实际上,由于内核问题,Docker并不是替代方案。

After: 后:

sudo apt-get install -y mssql-server

I'm supposed to do 我应该做

sudo /opt/mssql/bin/mssql-conf setup.

This returns after answering all questions: 回答所有问题后返回:

sqlservr[8383]: sqlservr: The configuration file '/var/opt/mssql/mssql.conf' failed to load (error: The INI file could not be opened. Errno [2] Filename [mssql.conf]). sqlservr [8383]:sqlservr:配置文件'/var/opt/mssql/mssql.conf'加载失败(错误:INI文件无法打开。Errno [2]文件名[mssql.conf])。

I can access the config file and it seems to be usable by the script as well. 我可以访问配置文件,该脚本似乎也可以使用它。 My Linux skills are not good enough to resolve this issue. 我的Linux技能不足以解决此问题。

To answer some questions that were raised: 要回答提出的一些问题:

  1. I tried sudo 我尝试了sudo
  2. cat the file returns the content as expected cat文件将按预期返回内容

Try running mssql server as root first (stop the service, run it as root, with /opt/mssql/bin/sqlservr ) and see if it works that way. 尝试首先以root用户身份运行mssql服务器(停止服务,使用/opt/mssql/bin/sqlservr以root用户身份运行),看看它是否能以这种方式工作。 If it does, stop the mssql server and fix the ownership of the mssql dir with sudo chown -R mssql:mssql /var/opt/mssql ). 如果是这样,请停止mssql服务器,并使用sudo chown -R mssql:mssql /var/opt/mssql修复mssql目录的所有权。 More info on this answer . 有关此答案的更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM