04 2020 档案
摘要:1.当设置密码后,上面的关闭命令无效:带密码输入: redis-cli -a [password] 回车后输入:shutdown save shutdown还有一个参数,代表关闭redis服务前是否生产持久化文件 shutdown save [root@localhost redis]# ps au
阅读全文
摘要:1.项目结构 2.pom.xml文件 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:/
阅读全文
摘要:1:查看防火状态 service iptables status 2:暂时关闭防火墙 service iptables stop 3:永久关闭防火墙 chkconfig iptables off 4:重启防火墙 service iptables restart
阅读全文
摘要:server { listen 90; server_name localhost; #访问/usr/wq/qingfeng目录下的index.html location / { root /usr/wq/qingfeng; index index.html; } #可以访问/usr/ wq目录下的
阅读全文
摘要:1.在nginx中配置静态服务器 server { listen 91; server_name localhost; location / { root /root/software/qingfeng; index index.html; } } 这是我放静态资源的/root/software/q
阅读全文
摘要:1.进入nginx的的sbin目录中使用命令./nginx -V查看自己的详细信息 这是我的详细信息 [root@localhost sbin]# ./nginx -V nginx version: nginx/1.16.1 built by gcc 4.4.7 20120313 (Red Hat
阅读全文
摘要:查看nginx.conf文件 cd /usr/local/nginx/conf目录下 vim nginx.conf #user nobody; #工作进程,这个可以去修改个数,工作进程主要为master主进程服务的 worker_processes 1; #日志 #error_log logs/er
阅读全文
摘要:1.简单的移动光标 0 → 数字零,到行头 $ → 到本行行尾 gg → 到第一行。 G → 到最后一行。 2.打开/保存/退出/改变文件 :e <path/to/file> → 打开一个文件 :w → 存盘 :saveas <path/to/file> → 另存为 <path/to/file> :
阅读全文
摘要:安装Nginx 1. 去官网http://nginx.org/下载对应的nginx包 2. 上传nginx到linux系统 3. 安装依赖环境 (1)安装gcc环境 yum install gcc-c++ (2)安装PCRE库,用于解析正则表达式 yum install -y pcre pcre-d
阅读全文
摘要:返回值 Ctrl+Alt+v 实现接口重写方法 Ctrl+i 大小写切换快捷键 ctr+shift+u 自动导入包 Alt + Enter try/catch 快捷提示 ctrl + alt + t
阅读全文
摘要:1.mysql-5.7.25-1.el6.x86_64.rpm-bundle.tar下载百度云资源 百度云:https://pan.baidu.com/s/1Sfom_aNhTyZnR7KGTZIfFw 提取码:ej1y 2.把下载的mysql安装包上传到Centos上 解压mysql,我这是在Wi
阅读全文