我知道使用 systemctl status 检查服务的特定状态并使用 systemctl enable 在系统启动时将服务置于自动启动状态。但是如何列出所有现有的自动启动服务?
JSON文件为6 GB。使用以下代码阅读时,
var fs = require('fs');
var contents = fs.readFileSync('large_file.txt').toString();
Run Code Online (Sandbox Code Playgroud)
它具有以下错误:
buffer.js:182
throw err;
^
RangeError: "size" argument must not be larger than 2147483647
at Function.Buffer.allocUnsafe (buffer.js:209:3)
at tryCreateBuffer (fs.js:530:21)
at Object.fs.readFileSync (fs.js:569:14)
at Object.<anonymous> (/home/readHugeFile.js:4:19)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Function.Module.runMain (module.js:605:10)
Run Code Online (Sandbox Code Playgroud)
有人可以帮忙吗?