powershell - Powershell 找不到 sysctl
问题描述
在 powershell 中运行sysctl
会出现以下错误:
sysctl : The term 'sysctl' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ sysctl
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (sysctl:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
它曾经工作正常,但在我手动删除一些与 python 相关的文件夹后停止工作。可能我已经删除了其他东西,但现在我想让它在不重新安装 Windows 的情况下工作。
我试过的:
- 从 Windows Market 重新安装 Ubuntu
有趣的是,我sysctl -w vm.max_map_count=262144
从 WLS 运行 - 它给了我permission denied on key "vm.max_map_count"
任何想法表示赞赏!
解决方案
推荐阅读
- ios - UIDocumentPickerViewController 以阿拉伯语显示翻转的内容
- git-bash - git bash终端在使用mongoDB时覆盖文本
- java - Springboot 在 Eureka 客户端依赖项上运行失败
- python - 试图制作一个在用户输入时停止的循环
- angular - Angular - 在组件内封装服务是一种不好的做法?
- c# - 如何为 Directline 语音客户端应用添加入职贺卡?
- c# - 将字符串数组转换为字符数组
- oracle - 无法在适用于 Windows 10 的 Oracle 12c R2 中打开 PDB
- reactjs - 401 错误,API 发送空白基本身份验证
- c++ - C++:QGridLayout - 小部件之间的空白