In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is to share with you about the method of installing SQL Server on rhel and CentOS, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
The following are operated in the terminal: please note: if you want to run SQL Server 2017 on a Linux distribution, you need at least 3.25GB or more memory to run smoothly.
1. If you want to install the SQL Server service, you need to switch to superuser permissions, otherwise unexpected errors may occur when downloading the configuration file.
Sudo su
2. Download the SQL Server configuration file for Red Hat Enterprise Edition and CentOS system, and execute the following code directly in the terminal:
Curl https://packages.microsoft.com/config/rhel/7/mssql-server.repo > / etc/yum.repos.d/mssql-server.repo
3. Superuser permission is not required after downloading the configuration file. Of course, if you log in using Root, please ignore the following steps:
Exit
4. Then use the yum command to install SQL Server directly. The installation command is as follows:
Sudo yum install-y mssql-server
5. Next, you need to run the SQL Server configuration file and then set a strong password for the account. The password should contain uppercase and lowercase letters and numbers or characters:
Sudo / opt/mssql/bin/mssql-conf setup
6. After successfully configuring the SQL Server account configuration information, verify whether the SQL Server is running. Execute the following code to verify it:
Systemctl status mssql-server
7. If you need to use a remote connection, ask the firewall to open TCP 1433. If you use FirewallD, execute the following command to release the port:
Sudo firewall-cmd-zone=public-add-port=1433/tcp-permanentsudo firewall-cmd-reload
Upgrade SQL Server:
If you want to upgrade the SQL Server service, execute the following command in the terminal to upgrade:
Sudo yum update mssql-server
Uninstall SQL Server:
To uninstall SQL Server, execute the following command in the terminal to uninstall:
Sudo yum remove mssql-server
Then delete the installation path of SQL Server:
Sudo rm-rf / var/opt/mssql/ above is how to install SQL Server on rhel and CentOS. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.