CentOS8 安装 SQLSERVER的简单过程
发布时间:2023-03-13 11:30:02 所属栏目:MsSql教程 来源:
导读:[root@CentOS8 sql2019rpm]# /opt/mssql/bin/mssql-conf setup
usermod: no changes
Choose an edition of sql Server:
1) Evaluation (free, no production use rights, 180-day limit)
2) Developer (free
usermod: no changes
Choose an edition of sql Server:
1) Evaluation (free, no production use rights, 180-day limit)
2) Developer (free
[root@CentOS8 sql2019rpm]# /opt/mssql/bin/mssql-conf setup usermod: no changes Choose an edition of sql Server: 1) Evaluation (free, no production use rights, 180-day limit) 2) Developer (free, no production use rights) 3) Express (free) 4) Web (PAID) 5) Standard (PAID) 6) Enterprise (PAID) - cpu Core utilization restricted to 20 physical/40 hyperthreaded 7) Enterprise Core (PAID) - cpu Core utilization up to Operating System Maximum 8) I bought a license through a retail sales channel and have a product key to enter. Details about editions can be found at Use of PAID editions of this software requires separate licensing through a Microsoft Volume Licensing program. By choosing a PAID edition, you are verifying that you have the appropriate number of licenses in place to install and run this software. Enter your edition(1-8): 7 The license terms for this product can be found in /usr/share/doc/mssql-server or downloaded from: The privacy statement can be viewed at: Do you accept the license terms? [Yes/No]:YES Enter the sql Server system administrator password: The specified password contains an invalid character. Valid characters include uppercase letters, lowercase letters, numbers, symbols, punctuation marks, and unicode characters that are categorized as alphabetic but are not uppercase or lowercase. Enter the sql Server system administrator password: Confirm the sql Server system administrator password: Configuring sql Server... ^[ORThe licensing PID was successfully processed. The new edition is [Enterprise Edition: Core-based Licensing]. ForceFlush is enabled for this instance. ForceFlush feature is enabled for log durability. Created symlink /etc/systemd/system/multi-user.target.wants/mssql-server.service → /usr/lib/systemd/system/mssql-server.service. Setup has completed successfully. sql Server is Now starting. 1. 首先关掉服务 systemctl stop mssql-server 2. 执行命令 /opt/mssql/bin/mssql-conf set-collation 3. 然后设置常用字符集即可 chinese_prc_ci_as 4. 增加环境变量 vim /etc/profile.d/db.sh export PATH=$PATH:/opt/mssql-tools/bin source 使之生效 5. 进行了解测试 [root@CentOS8 opt]# sqlcmd -H 127.0.0.1 -U sa Password: 1> select @@version 2> go Microsoft sql Server 2019 (RTM-CU4) (KB4548597) - 15.0.4033.1 (X64) Mar 14 2020 16:10:35 copyright (C) 2019 Microsoft Corporation Enterprise Edition: Core-based Licensing (64-bit) on Linux (CentOS Linux 8 (Core)) <X64> (1 rows affected) 1> (编辑:汽车网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐