background picture of the home page

Think in Code

linux 配置 ntp 服务器

linux 配置 ntp 服务器 linux 配置 ntp 服务器 # 查看当前服务器时区&列出时区并设置时区(如已是正确时区,请略过): timedatectl timedatectl list-timezones timedatectl set-timezone Asia/Shanghai y

thumbnail of the cover of the post

解压rpm安装包

解压rpm安装包 解压rpm安装包 rpm2cpio xxx.rpm | cpio -div 解压当前目录所有的rpm包 find . -type f -print0 | xargs -0 -I x sh -c 'rpm2cpio x | cpio -idv'

thumbnail of the cover of the post

Linux修改和关闭Swap分区大小

修改和关闭Swap分区大小 修改swap大小 dd if=/dev/zero of=/opt/swapfile bs=1M count=1024 (创建一个1G的文件作为交换分区使用) mkswap /opt/swapfile (格式化成swap分区) swapon /opt/swapfile

thumbnail of the cover of the post

设置socket缓冲区

系统socket缓冲区 读缓冲区:echo 16777216 > /proc/sys/net/core/rmem_max 写缓冲区:echo 16777216 > /proc/sys/net/core/wmem_max sysctl net.core.rmem_max=16777216 sysctl

thumbnail of the cover of the post

Linux更换软件源

Ubuntu 1. 编辑源文件 sudo vi /etc/apt/sources.list 2. 注释原有的源地址 3. 切换成清华的源地址 ubuntu | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror # 默认注释了源码镜像以提高 apt

thumbnail of the cover of the post

Qt程序打包

Windows 使用Qt自带的程序,在 C:\Qt\Qt5.12.7\5.12.7\msvc2015_64\bin\windeployqt.exe 使用 windeployqt + exe路径,会将需要的动态库拉取到exe所在目录 如果使用了 qml,需要 加 -qmldir C:\Qt\Qt5.1

thumbnail of the cover of the post