2023年04月17日
需求:需要在数据库中根据当前时间,获取近1月(近30天)、近3月(近90天)、近6月(近180天)的数据,返回给前台。具体脚本近1月(近30天)方式1:select field1,field2 from tablename where datediff(dd,DTime,GETDATE())<
阅读全文
2023年04月12日
设置root密码sudo passwd root设置root用户登录图形桌面sudo vim /etc/pam.d/gdm-autologin注释'auth requied pam_succeed_if.so user != root quiet success'这一行终端输入命令sudo vim
阅读全文
2023年04月09日
部分发行版源文件路径Ubuntu的源文件路径:/etc/apt/sources.listCentOS的源文件路径:/etc/yum.repos.d/CentOS-Base.repoDeepin的源文件路径:/etc/apt/sources.listDebian的源文件路径:/etc/apt/sour
阅读全文
2023年04月09日
环境:RedHat系:RedHat 8;nfs-utils 2.3.3同时兼容RedHat系列的系统如CentOS、Fedora等。Debian系:Deepin 20.2.2;nfs-kernel-server 1.3.4同时兼容Debian系列的系统如Ubuntu、Chrome OS等。使用Red
阅读全文
2023年04月09日
Systemd 是 Linux 系统的一种初始化系统实现,它管理的各种服务叫做 Unit,每个服务对应一个 Unit 配置文件Systemd 的服务有两种状态:运行中/已停止/错误启用/禁用Systemd 的 Unit 配置文件 通常位于这些目录中/lib/systemd/system (供软件包使
阅读全文
2023年04月09日
114DNS114.114.114.114和114.114.115.115114.114.114.119和114.114.115.119在前面基础上还可拦截钓鱼病毒木马网站、增强网银、证券、购物、游戏、隐私信息安全的114.114.114.110和114.114.115.110在前面基础上还可拦截色
阅读全文
2023年04月07日
1、在Windows必须按照NFS客户端(控制面板/程序/程序与功能/启用或关闭Windows功能)。开启NFS服务。2、命令行查询服务器可用挂载点(假设服务器IP是10.124.211.52)showmount -e 10.104.211.523、映射网络驱动器"我的电脑" 右
阅读全文
2023年03月29日
生成requirements.txt文件pip freeze > requirements.txt安装requirements.txt依赖pip install -r requirements.txt安装问题:安装依赖项的时候发现,有的依赖项在镜像源中找不到规定版本导致安装终止将require
阅读全文
2023年03月29日
打开npm的配置文件npm config edit在空白处将下面几个配置添加上去,注意如果有原有的这几项配置,就修改registry=https://registry.npmmirror.comelectron_mirror=https://cdn.npmmirror.com/binaries/el
阅读全文
2023年03月28日
1、在线搜索image镜像docker search 模糊关键字示例: docker search dotnet2、下载在线的image镜像docker pull 镜像名称示例:docker pull microsoft/dotnet3、创建并且启动一个images镜像到容器docker run示例
阅读全文