---
title: "Discussion on \"WSL2 Ruby on Rails 开发环境搭建笔记\" | Hashnode"
description: "Discussion on \"WSL2 Ruby on Rails 开发环境搭建笔记\". 没有 systemd 的补救方式\npg、redis、docker 等服务的自启动 /etc/init.wsl\n# /etc/init.wsl\n#! /bin/sh\nsysctl -w vm.max_map_count=262144\npg_ctlcluster 13 main start\nservice redis-server start\nservice docker start\n\nwin 端开机自启动 vbs 脚本\n# C:\\Users\\[Your User Name]\\AppData\\Roa..."
url: "https://hashnode.com/posts/wsl2-ruby-on-rails/634534eb0895d0fc31dfa097"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [WSL2 Ruby on Rails 开发环境搭建笔记](https://ergo.hashnode.dev/wsl2-ruby-on-rails?utm_source=hashnode&utm_medium=feed)

没有 systemd 的补救方式 pg、redis、docker 等服务的自启动 /etc/init.wsl # /etc/init.wsl #! /bin/sh sysctl -w vm.max\_map\_count=262144 pg\_ctlcluster 13 main start service redis-server start service docker start win 端开机自启动 vbs 脚本 # C:\\Users\\\[Your User Name\]\\AppData\\Roa...

Oct 11, 2022 · 1 min read · ergo.hashnode.dev  
Read the article

-   [#ruby-on-rails](https://hashnode.com/tag/ruby-on-rails)
-   [#wsl](https://hashnode.com/tag/wsl)

## Written by

[Ergo Lau](https://hashnode.com/@ergolau)

@ergolau

  
[View profile](https://hashnode.com/@ergolau)

CRUD scientist

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
