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

米粒在线
米粒在线
管理员
19285
文章
0
粉丝
百科知道 英语 网站建设/tmp/lshttpd/swap 占用系统盘空间 OpenLiteSpeed 移动交换目录已关闭评论1,8271阅读模式

/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 移动交换目录-图片1

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

 
  • 本文由 米粒在线 发表于2024年12月26日 10:35:00
  • 转载请务必保留本文链接:https://www.miliol.org/129259.html
网站建设

OpenLiteSpeed 中rolling Size设置是指什么

在OpenLiteSpeed中,”Rolling Size”设置是指配置轮询(Rolling)缓存大小的选项。轮询缓存是一种机制,用于缓存动态生成的内容,以提高网站性能和响应速度。 “Rolling ...
网站建设

用 Laravel 吗,从 Nginx 切换到 OpenLiteSpeed 的那种

新年伊始,万象更新,各位小伙伴们新年好! 前不久年初时(2021年),刚折腾着把窝倒腾到了新东家。 折腾就是累,不过就在这一通折腾后,我突然发现了一个好东西。 入坑之初当我怀疑新东家的网速或稳定性是否...