背景:服务器运行过程中发现内存不够用,缓存的又太多 现象: 解决办法: 1、同步数据到磁盘 [root@localhost ~]# sync 2、根据需求清除对应缓存 [root@localhost ~]# echo 3 > /proc/sys/vm/drop_caches 参数说明: 0 //默认 ...
分类:
系统相关 时间:
2021-06-07 20:40:37
阅读次数:
0
1.在自己的服务器中找到redis的配置文件 redis.conf 使用命令vi redis.conf或vim redis.conf ...
分类:
其他好文 时间:
2021-06-07 20:35:04
阅读次数:
0
想在linux环境下打开一个网页,环境描述:在窗口模式下,打Terminal,然后从本地服务器ssh到了另一个服务器,想执行firefox命令打开一个网页,如下 [root@pc207 ~]# firefox http://www.a.com Error: no display specified ...
分类:
Web程序 时间:
2021-06-07 20:34:32
阅读次数:
0
安装Redis 首先安装wget命令,wget是一个从网络上下载文件的自由工具。 yum install wget 创建一个目录“soft” mkdir soft cd到soft目录中安装redis 打开Redis官网(https://redis.io/)获取下载链接https://download ...
分类:
其他好文 时间:
2021-06-07 20:10:20
阅读次数:
0
1.下载mysql-8.0.25(https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-8.0.25-el7-x86_64.tar.gz) 2.上传到 /usr/local/mysql 目录,执行 tar -zxvf /usr/local/mysqlmys ...
分类:
数据库 时间:
2021-06-06 19:41:07
阅读次数:
0
配置环境:gerrit 192.168.1.100gitlab 192.168.1.1011.创建秘钥 [root@gerrit ~]# ssh-keygen -m PEM -t rsa 2.添加hosts 解析 [root@gerrit ~]#echo "192.168.1.101 gitlab" ...
分类:
其他好文 时间:
2021-06-06 19:34:13
阅读次数:
0
首先需要下载RAID卡驱动,放入U盘,建议FAT32文件系统 空白U盘 1, 2, 3, 4,可以看到安装界面已经能看到RAID组磁盘 ...
分类:
其他好文 时间:
2021-06-06 19:30:56
阅读次数:
0
启动 % brew services start php@5.6 ==> Successfully started `php@5.6` (label: homebrew.mxcl.php@5.6) jiqing@jiqingdeMacBook-Pro nginx % ps -ef | grep ph ...
分类:
Web程序 时间:
2021-06-06 19:15:28
阅读次数:
0
SSH框架整合 步骤一、导入所需要的jar包Hibernate Struts2 Spring:基础包:4+2 测试 整合web项目 aop JDBC 步骤二、Spring整合Struts2 1、在web.xml里配置struts2 2、在struts.xml里配置struts2 '3、在web.xm ...
分类:
其他好文 时间:
2021-06-06 19:09:53
阅读次数:
0
部署服务器(nginx+mysql+javaJdk) 使用密钥登陆服务器 先生成密匙并存储到本地。 找到您下载的私钥所在目录,如:/root/xxx.pem。 说明 xxx.pem即为您的私钥文件,下同。 使用以下命令修改私钥文件的属性:chmod 400 xxx.pem。 使用SSH命令连接至实例 ...
分类:
数据库 时间:
2021-06-06 18:59:40
阅读次数:
0