lhDream
This bash script creates and activates a swap file on a Linux system. It defaults to a 4GB swap file (/usr/swap/swapfile), but this size can be adjusted via a command-line argument. The script uses `dd` to create the file, `mkswap` to format it, and `swapon` to activate it. While the script includes commented-out lines for setting the swap file to activate on boot via `/etc/fstab`, this feature is not enabled by default. The script also displays the size of the created swap file using `du`.
lhDream
使用firewall-cmd命令可以检查和管理Linux防火墙的端口。首先,使用`firewall-cmd --query-port=80/tcp --zone=public`检查端口80是否开启,返回yes表示开启,no表示未开启。要开启端口,运行`firewall-cmd --zone=public --add-port=80/tcp --permanent`命令,修改端口号即可。若防火墙未运行,需先运行`systemctl start firewalld`启动防火墙,并确认启动成功。最后,记得重启服务器使更改生效。
lhDream
This article details the compilation and installation of PROJ (Cartographic Projections library) version 9.4.1 on a Linux system. It outlines the steps involved: downloading the source code, extracting the archive, installing necessary dependencies (sqlite-devel, libtiff-devel, libcurl-devel using yum), configuring the installation prefix using cmake, compiling the code using make, and finally installing the compiled library using make install. The installation directory is specified as /usr/local/proj_9.
京东家政
0 篇文章京东
0 篇文章Steam
2 篇文章Milky way Idle
1 篇文章服务器
1 篇文章docker
1 篇文章我的世界
1 篇文章饥荒
1 篇文章IED
1 篇文章rust
3 篇文章OpenWrt
2 篇文章OpenClash
2 篇文章iStoreOS
5 篇文章软路由
4 篇文章tomcat
1 篇文章游戏开发
10 篇文章FXGL
10 篇文章Python
1 篇文章缺氧
0 篇文章Mindustry
1 篇文章JNA
2 篇文章JNI
1 篇文章gradle
0 篇文章maven
2 篇文章Spring Boot
2 篇文章Spring
2 篇文章gmake
1 篇文章cmake
2 篇文章make
2 篇文章Windows
4 篇文章数据库
1 篇文章Mysql
3 篇文章javaFX
10 篇文章vue
0 篇文章js
0 篇文章kotlin
0 篇文章Java
20 篇文章C/C++
5 篇文章Linux
13 篇文章Halo
0 篇文章