![]() Again, the "normal" method of doing this won't work without Systemd. Note that if you use Docker to run Elasticsearch, you'll probably need to increase the max_map_count configuration as I mention in this Stack Overflow answer. Instructions for configuring that are in my second (recent, of course) answer on that Ask Ubuntu question. ![]() Or, if you are running Windows 11, there is a pre-release version of WSL that just came out this week that provides the ability to run Systemd. Two of the alternative options I mention there (when a SysVInit script isn't available) are: See my two different answers on this Ask Ubuntu question for details. WSL doesn't support Systemd without additional configuration. Its package maintainers assume that since you are installing it on Ubuntu, then you are running Systemd. Your first command failed because the syntax for service scripts is sudo service command.īut that form fails with Elasticsearch because it doesn't provide a service script. While I haven't tried it myself, most people who have asked questions about running Elasticsearch under WSL are using Docker Desktop to do so, although there are other alternatives as well. Start: unrecognized service and same for this command sudo service elasticsearch start the output is But I am getting the following error on running the service sudo service start elasticsearch I get the following message It seems from the above logs that the installation was fine. Use 'sudo apt autoremove' to remove them.Ġ upgraded, 0 newly installed, 0 to remove and 538 not upgraded. Libdaq2 libdumbnet1 oinkmaster snort-common snort-common-libraries snort-rules-default The following packages were automatically installed and are no longer required: I installed elasticsearch on WSL2 using the command: sudo apt-get update & sudo apt-get install elasticsearch I get the following output: sudo apt-get update & sudo apt-get install elasticsearchĮlasticsearch is already the newest version (8.4.2).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |