{"id":232,"date":"2022-10-31T15:56:27","date_gmt":"2022-10-31T15:56:27","guid":{"rendered":"https:\/\/vkrastev1blog.com\/?p=232"},"modified":"2022-10-31T15:58:54","modified_gmt":"2022-10-31T15:58:54","slug":"install-solr-8-under-windows-as-service","status":"publish","type":"post","link":"https:\/\/vkrastev1blog.com\/2022\/10\/31\/install-solr-8-under-windows-as-service\/","title":{"rendered":"Windows\u4e0b\u5b89\u88ddSolr 8\u4f5c\u70ba\u670d\u52d9"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u662f\u5982\u4f55\u5c07Solr 8\u5b89\u88dd\u70baWindows\u670d\u52d9\u7684\u7c21\u77ed\u8aaa\u660e<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5f9ehttps:\/\/nssm.cc\/release\/nssm-2.24.zip\u4e0b\u8f09nssm\u4e26\u89e3\u58d3\u7e2e\u5230C:\\Program\u6a94\u6848\\ nssm<\/li>\n\n\n\n<li>\u5f9e <a href=\"https:\/\/dlcdn.apache.org\/lucene\/solr\/8.11.2\/solr-8.11.2.zip\" rel=\"nofollow\">https:\/\/dlcdn.apache.org\/lucene\/solr\/8.11.2\/solr-8.11.2.zip<\/a> \u4e0b\u8f09 Solr 8 \u4e26\u5c07\u5176\u89e3\u58d3\u7e2e\u5230 C:\\web\\solr<\/li>\n\n\n\n<li>\u5fc5\u9808\u5b89\u88dd Java \u7248\u672c 8 \u6216\u66f4\u9ad8\u7248\u672c\u4e26\u8a2d\u5b9a JAVA_HOME \u74b0\u5883\u8b8a\u91cf<\/li>\n\n\n\n<li>\u5efa\u7acbWindows\u670d\u52d9solr8\u3002\u5728 Windows \u63a7\u5236\u53f0\u4e2d\u4ee5\u7ba1\u7406\u54e1\u8eab\u5206\u57f7\u884c\u4e0b\u5217\u547d\u4ee4\u3002<br><code>\"C:\\Program Files\\nssm\\win64\\nssm.exe\" install solr8 C:\\web\\solr\\bin\\solr.cmd \"start -f -p 8983 -Dsolr.ltr.enable=true\"<\/code><\/li>\n\n\n\n<li>\u914d\u7f6e\u9632\u706b\u7246<br><code>netsh advfirewall firewall add rule name=\"Solr 8983\/tcp\" dir=in action=allow protocol=TCP localport=8983<\/code><\/li>\n\n\n\n<li><code>\"C:\\Program Files\\nssm\\win64\\nssm.exe\" start solr8<\/code><\/li>\n\n\n\n<li>\u5982\u679c\u60a8\u60f3\u67e5\u770b\u670d\u52d9\u7684\u8f38\u51fa<br><code>\"C:\\Program Files\\nssm\\win64\\nssm.exe\" set solr8 AppStdout C:\\web\\solr\\logs\\service.log<\/code><br><code>\"C:\\Program Files\\nssm\\win64\\nssm.exe\" set solr8 AppStderr C:\\web\\solr\\logs\\service-error.log<\/code><\/li>\n\n\n\n<li>\u82e5\u8981\u67e5\u770b\u7ba1\u7406\u5100\u8868\u677f\uff0c\u8acb\u524d\u5f80 <a href=\"http:\/\/localhost:8983\/solr\/#\/\" rel=\"nofollow\">http:\/\/localhost:8983\/solr\/#\/<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u4e0b\u662f\u5982\u4f55\u5728 Windows \u670d\u52d9\u4e0a\u4f7f\u7528 Solr 8 \u7684\u7c21\u8981\u8aaa\u660e [&hellip;]<\/p>\n","protected":false},"author":65283547,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[559],"tags":[756735561,756735568],"class_list":["post-232","post","type-post","status-publish","format-standard","hentry","category-others","tag-slor8","tag-solr-windows"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4CoHV-3K","jetpack-related-posts":[{"id":2,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/09\/how-to-repair-bootloader-after-installing-ubuntu-on-preinstalled-windows-pc-als-second-operating-system\/","url_meta":{"origin":232,"position":0},"title":"\u5728\u9884\u88c5 Windows PC \u4f5c\u4e3a\u7b2c\u4e8c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u5b89\u88c5 Ubuntu \u540e\u5982\u4f55\u4fee\u590d Bootloader","author":"vkrastev2014","date":"09.05.2014","format":false,"excerpt":"I used this many times as the bootloader gone corrupted after the install and it was only possible to start in Linux but not in Windows after the Linux install. So you should do following to get it right. Execute following commands in Linux: ------------------------------------------------------------------------------------- sudo add-apt-repository ppa:yannubuntu\/boot-repair sudo apt-get\u2026","rel":"","context":"In &quot;\u5176\u4ed6\u7684&quot;","block_context":{"text":"\u5176\u4ed6\u7684","link":"https:\/\/vkrastev1blog.com\/category\/others\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":129,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/26\/new-gpu-bitcoin-miner-is-there-named-diamantminer-how-to-install-on-windows\/","url_meta":{"origin":232,"position":1},"title":"\u65b0\u7684 GPU \u6bd4\u7279\u5e01\u77ff\u5de5\u88ab\u547d\u540d\u4e3a DiamantMiner\u3002\u5982\u4f55\u5728 Windows \u4e0a\u5b89\u88c5","author":"vkrastev2014","date":"26.05.2014","format":false,"excerpt":"New GPU Bitcoin Miner is there named DiamantMiner. How to install on Windows I have tried the new bitcoin miner and I find it very good. What you should do to install it on Windows is described here. How to build and install DiamantMiner requires the SDK for Java Version\u2026","rel":"","context":"In &quot;\u5176\u4ed6\u7684&quot;","block_context":{"text":"\u5176\u4ed6\u7684","link":"https:\/\/vkrastev1blog.com\/category\/others\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":19,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/09\/how-to-install-the-newest-nvidia-driver-on-ubuntu\/","url_meta":{"origin":232,"position":2},"title":"\u5982\u4f55\u5728 Ubuntu \u4e0a\u5b89\u88c5\u6700\u65b0\u7684 NVIDIA \u9a71\u52a8\u7a0b\u5e8f","author":"vkrastev2014","date":"09.05.2014","format":false,"excerpt":"Open console window and type following commands: -------------------------------------------------------------------------------------------------------------- sudo apt-add-repository ppa:ubuntu-x-swat sudo apt-get update sudo apt-get install nvidia-current --------------------------------------------------------------------------------------------------------------- And you have the newest Driver installed.","rel":"","context":"In &quot;\u5176\u4ed6\u7684&quot;","block_context":{"text":"\u5176\u4ed6\u7684","link":"https:\/\/vkrastev1blog.com\/category\/others\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":47,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/11\/how-to-sign-jars-signing-jars-for-use-in-applets\/","url_meta":{"origin":232,"position":3},"title":"\u5982\u4f55\u7b7e\u7f72\u7f50\u5b50\u3002\u7b7e\u7f72\u7528\u4e8e Applet \u7684 Jars\u3002","author":"vkrastev2014","date":"11.05.2014","format":false,"excerpt":"As the Browsers now want the Jars to be signed it happens oft that man have to sign a Jar himself. Here is a Manual how to sign a Jar. First you have to install Java SDK. http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html?ssSourceSiteId=otnjp Install the JDK from the list for the envitonment you use. This\u2026","rel":"","context":"In &quot;\u722a\u54c7&quot;","block_context":{"text":"\u722a\u54c7","link":"https:\/\/vkrastev1blog.com\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":55,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/11\/important-shell-script-commands-which-are-oft-used\/","url_meta":{"origin":232,"position":4},"title":"\u5e38\u7528\u7684\u91cd\u8981 Shell \u811a\u672c\u547d\u4ee4","author":"vkrastev2014","date":"11.05.2014","format":false,"excerpt":"Here is a list of some important shell commands: ---- Using Screen command screen -ls -- for a list of avaliable active screens screen -x .... - the Name from -ls output to join to this active screen Go out of the Screen with 'ctrl a+d' without stopping it ----\u2026","rel":"","context":"In &quot;\u5176\u4ed6\u7684&quot;","block_context":{"text":"\u5176\u4ed6\u7684","link":"https:\/\/vkrastev1blog.com\/category\/others\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":174,"url":"https:\/\/vkrastev1blog.com\/2022\/02\/08\/create-dump-from-oracle-schema-in-console-in-linux\/","url_meta":{"origin":232,"position":5},"title":"\u5728 Linux \u63a7\u5236\u53f0\u4e2d\u4ece Oracle \u6a21\u5f0f\u521b\u5efa\u8f6c\u50a8","author":"vkrastev2014","date":"08.02.2022","format":false,"excerpt":"It is not easy to find the correct way to execute expdp command in console. There are some steps before you execute expdp command. First you have to create a directory on the computer where Oracle DB is, where you will put the dump files than you have to grant\u2026","rel":"","context":"In &quot;\u5176\u4ed6\u7684&quot;","block_context":{"text":"\u5176\u4ed6\u7684","link":"https:\/\/vkrastev1blog.com\/category\/others\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/users\/65283547"}],"replies":[{"embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/comments?post=232"}],"version-history":[{"count":4,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/232\/revisions"}],"predecessor-version":[{"id":236,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/232\/revisions\/236"}],"wp:attachment":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/media?parent=232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/categories?post=232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/tags?post=232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}