IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    /tmp/lshttpd/swap 占用系统盘空间 OpenLiteSpeed 移动交换目录

    米粒在线发表于 2024-12-26 02:35:00
    love 0

    /tmp/lshttpd/swap 宝塔默认设置的swap交换分区文件 这个怎么改到数据盘

    OpenLiteSpeed move Swapping Directory
    OpenLiteSpeed 移动交换目录

    By default OpenLiteSpeed use /tmp/lshttpd/swap for temp files. If your /tmp partition is small, disk may get full.
    默认情况下,OpenLiteSpeed 对临时文件使用 /tmp/lshttpd/swap。如果您的 /tmp 分区很小,磁盘可能会变满。

    To move OpenLiteSpeed swap partition to / partition do the following.
    要将 OpenLiteSpeed 交换分区移动到 / 分区,请执行以下操作。

    mkdir -p /lswstmp/lshttpd/swap
    chmod 750 /lswstmp/lshttpd
    chmod 700 /lswstmp/lshttpd/swap
    chown -R nobody:nobody /lswstmp/lshttpd
    

    Now login to OpenLiteSpeed admin interface at
    现在登录 OpenLiteSpeed 管理界面

    https://your-server-ip:7080/login.php
    

    If you don’t have user name and password, you can reset it by running command
    如果您没有用户名和密码,可以通过运行 command 来重置它

    /usr/local/lsws/admin/misc/admpass.sh
    

    Once logged in, go to
    登录后,转到

    Server Configuration > General

    /tmp/lshttpd/swap 占用系统盘空间  OpenLiteSpeed 移动交换目录

    Under “Server Process’ section, you need to edit value of “Swapping Directory”. Default value is “/tmp/lshttpd/swap”, change it to “/lswstmp/lshttpd/swap”.
    在“Server Process(服务器进程)”部分下,您需要编辑 “Swapping Directory”(交换目录)的值。默认值为 “/tmp/lshttpd/swap”,将其更改为 “/lswstmp/lshttpd/swap”。

    Restart OpenLiteSpeed. You can do it using web interface or using SSH.
    重新启动 OpenLiteSpeed。您可以使用 Web 界面或使用 SSH 来完成。

    systemctl restart lsws


沪ICP备19023445号-2号
友情链接