systemctl命令: 1、启动防火墙 systemctl start firewalld.service 或 systemctl start firewalld 2、关闭防火墙 systemctl stop firewalld.service 或 systemctl stop firewalld ...
分类:
系统相关 时间:
2020-07-12 10:40:13
阅读次数:
90
先要对宿主机增大cpu数量 加到4处理器、2内核、8线程 查看 CPU 物理个数 grep 'physical id' /proc/cpuinfo | sort -u | wc -l 查看 CPU 核心数量 grep 'core id' /proc/cpuinfo | sort -u | wc -l ...
分类:
其他好文 时间:
2020-07-12 10:36:41
阅读次数:
75
查看nginx是否安装 linux中查看nginx的安装位置 在命令行输入ps -ef | grep nginx root 973 1 0 19:14 ? 00:00:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf ...
分类:
其他好文 时间:
2020-07-12 00:29:22
阅读次数:
191
原文出处:http://www.51testing.com/?uid-225738-action-viewspace-itemid-210333测试机器的硬件信息:查看CPU信息(型号)# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c 8 ...
分类:
系统相关 时间:
2020-07-11 19:06:43
阅读次数:
77
systemctl list-unit-files会列出开启的和未开启的:使用grep过滤一下开启的grep enabledgrep enabled然后使用systemctl status openresty.service1查看这个.service文件的路径,及内容。禁用开机启动:sudo sys... ...
分类:
系统相关 时间:
2020-07-11 17:38:57
阅读次数:
223
1.停止命令 pkill php-fpm 2.重启或启动命令 php-fpm -R 3.查看php是否启动 ps -ef | grep php 或者 ps -A | grep -i php ...
分类:
Web程序 时间:
2020-07-11 17:38:20
阅读次数:
72
本期重点 ipip 技术 确认内核模块加载 [root@kuberspary ~]# modprobe ipip [root@kuberspary ~]# lsmod |grep ipip ipip 13465 0 tunnel4 13252 1 ipip ip_tunnel 25163 1 ipi ...
分类:
其他好文 时间:
2020-07-10 20:45:39
阅读次数:
51
https://www.cnblogs.com/longren/p/11168317.html step1:卸载所有与mysql,mariadb相关的东西 卸载mysql # rpm -qa | grep mysql yum -y remove mysql-community-common-5.7. ...
分类:
数据库 时间:
2020-07-10 19:30:21
阅读次数:
85
1.nvidia-smi看看对应驱动的版本,如果没有还得先去下载驱动,https://www.nvidia.com/ 2.安装cuda, https://developer.nvidia.com/cuda-downloads sudo sh cuda_10.1.105_418.39_linux.ru ...
分类:
系统相关 时间:
2020-07-10 17:16:09
阅读次数:
287
redis支持的数据类型:字符串(string)哈希表(hash)列表(list)集合(set)有序集合(zset)位图(bitmaps)HyperLoglogs、GEO等.redis特性如下:速度快:基于内存工作,使用离OS最近的C语言编写,使用单线程架构,预防了多线程可能产生的竞争问题。基于键值对的数据结构服务器:redis中的值不仅仅可以是字符串,关于其支持的数据类型已经在文章开头列出来了。
分类:
其他好文 时间:
2020-07-10 09:58:44
阅读次数:
60