{"id":5996,"date":"2023-05-10T21:51:44","date_gmt":"2023-05-10T12:51:44","guid":{"rendered":"\/blog\/?p=5996"},"modified":"2023-09-21T09:26:20","modified_gmt":"2023-09-21T00:26:20","slug":"rocky-linux-8-7%ec%97%90-ms-sql-2017-%ec%84%a4%ec%b9%98","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=5996","title":{"rendered":"Install MS-SQL 2017 on Rocky Linux 8.7"},"content":{"rendered":"\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"atomic\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">1.\uc124\uce58\n  wget -P \"\/tmp\" --no-check-certificate \"https:\/\/packages.microsoft.com\/config\/rhel\/8\/mssql-server-2017.repo\"\n  mv -f \/tmp\/mssql-server-2017.repo \/etc\/yum.repos.d\/\n  wget -P \"\/tmp\" --no-check-certificate \"https:\/\/packages.microsoft.com\/config\/rhel\/8\/prod.repo\"\n  mv -f \/tmp\/prod.repo \/etc\/yum.repos.d\/msprod.repo\n\n  dnf -y install mssql-server\n  dnf -y install mssql-tools\n  dnf -y install unixODBC-devel\n\n  \/opt\/mssql\/bin\/mssql-conf setup\n    ...\n    2) Developer (\ubb34\ub8cc, \ud504\ub85c\ub355\uc158 \uc0ac\uc6a9\uad8c \uc5c6\uc74c)\n    ...\n    Developer\ub85c \uc120\ud0dd\ud558\uc5ec \uc124\uce58 \uc9c4\ud589.\n\n2.profile\uc5d0 \ud658\uacbd\ubcc0\uc218 \ucd94\uac00\n  vi ~\/.bash_profile\n---------------------------------------\n# for Microsoft SQL\nexport MSSQL_HOME=\/opt\/mssql-tools\nexport PATH=$MSSQL_HOME\/bin:$PATH\n---------------------------------------\n  source ~\/.bash_profile\n  \ub370\uc774\ud130 \ub514\ub809\ud1a0\ub9ac: \/var\/opt\/mssql\/data\n  chown -R mssql:mssql \/var\/opt\n  chown -R mssql:mssql \/opt\/mssql\n  chown -R mssql:mssql \/opt\/microsoft\n\n3.\ud14c\uc2a4\ud2b8\n  sqlcmd -S localhost -U sa\n  Password:\n  1> SELECT 1;\n  2> GO\n  3> exit\n\n4.systemd \uc124\uc815\n  systemctl enable mssql-server.service<\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[39,10],"tags":[],"class_list":["post-5996","post","type-post","status-publish","format-standard","hentry","category-os_linux_unix_macos","category-computing_database"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5996","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5996"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5996\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}