java -XX:+PrintCommandLineFlags -version 其中得出的max 内存除以1024,得到按兆为单位。 然后用glances,查看, 如果没有glances命令,用yum 安装一下,如果安装不到,更新一下repo的源和附加源。 默认java的一个进程占用内存总量的1/ ...
分类:
编程语言 时间:
2021-03-29 12:15:57
阅读次数:
0
无论是Samba服务还是NFS服务,都要把挂载信息写入到/etc/fstab中,这样远程共享资源就会自动随服务器开机而进行挂载。 [root@localhost ~]# yum install autofs Loaded plugins: langpacks, product-id, subscri ...
分类:
系统相关 时间:
2021-03-29 12:13:17
阅读次数:
0
const { resolve } = require("path") const HtmlWebpackPlugin = require('html-webpack-plugin') module.exports = { entry: './src/index.js', output: { fil ...
分类:
Web程序 时间:
2021-03-29 12:08:56
阅读次数:
0
以内核模块 drbd 为例: 1、创建 /etc/modules-load.d/drbd.conf 中,直接写模块名: drbd 2、创建 /etc/sysconfig/modules/drbd.modules:内容如下 # drbd module exists? /usr/sbin/modinfo ...
分类:
其他好文 时间:
2021-03-29 11:51:34
阅读次数:
0
用spyder运行正常,程序上传到服务器,添加计划任务,运行报错:ModuleNotFoundError: No module named 'selenium',实际上已经安装了。 搜索一番,有人说程序前面加上: import sys import os curPath = os.path.absp ...
分类:
其他好文 时间:
2021-03-29 11:49:17
阅读次数:
0
Info和GroupInfo // the Info and GroupInfo structures are passed by the main // program in setup() to give information on how variables are // named and ...
分类:
其他好文 时间:
2021-03-26 15:21:47
阅读次数:
0
#!/bin/bash mkdir /etc/yum.repos.d/repo mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/repo curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.ali ...
分类:
其他好文 时间:
2021-03-18 14:42:38
阅读次数:
0
错误介绍 在django项目中,当你从非项目文件夹导包时,在终端运行该文件报无该模块时,是否很困惑,因为当你直接重编辑器pycharm运行又是正常的。 错误情况 from xxx import xx ModuleNotFoundError: No module named "xxx" 错误原因 直接 ...
分类:
其他好文 时间:
2021-03-18 14:29:59
阅读次数:
0
#!/bin/bash #检测whois命令是否存在,不存在则安装jwhois包is_install_whois(){ which whois &> /dev/null if [ $? -ne 0 ];then yum install -y jwhois fi}is_install_whois#定义 ...
分类:
其他好文 时间:
2021-03-18 14:10:30
阅读次数:
0
File "/usr/bin/yum-config-manager", line 135 except yum.Errors.RepoError, e: ^SyntaxError: invalid syntax vim /usr/bin/yum-config-manager #!/usr/bin/p ...
分类:
其他好文 时间:
2021-03-18 14:10:14
阅读次数:
0