随笔分类 -  linux

linux
linux 查询目录文件大小
摘要: 阅读全文

posted @ 2021-10-22 10:56 rigidwang 阅读(13) 评论(0) 推荐(0) 编辑

清空buff/cache
摘要:https://blog.csdn.net/qq_34246965/article/details/109258656 1)清理pagecache(页面缓存)echo 1 > /proc/sys/vm/drop_caches或sysctl -w vm.drop_caches=1[root@ackh- 阅读全文

posted @ 2021-10-05 11:10 rigidwang 阅读(475) 评论(0) 推荐(0) 编辑

nginx 正则
摘要:https://www.cnblogs.com/bethal/p/5514557.html 阅读全文

posted @ 2021-09-11 20:39 rigidwang 阅读(3) 评论(0) 推荐(0) 编辑

centos 增加用户以及用户组
摘要: 阅读全文

posted @ 2020-02-13 21:03 rigidwang 阅读(226) 评论(0) 推荐(0) 编辑

nginx 目录匹配规则
摘要:参考:https://www.cnblogs.com/duhuo/p/8323812.html location ^~ /tea/ { root /usr/local/nginx/html/; } 请求:http://test.com/tea/tea1.html 实际访问:/usr/local/ng 阅读全文

posted @ 2020-02-05 22:20 rigidwang 阅读(1958) 评论(1) 推荐(0) 编辑

tengine upstream
摘要:user root;worker_processes 1;events { worker_connections 1024;}http { include mime.types; default_type application/octet-stream; sendfile on; #tcp_nop 阅读全文

posted @ 2019-04-09 22:43 rigidwang 阅读(158) 评论(0) 推荐(0) 编辑

centos7 nginx tengine 安装
摘要:参考:https://blog.csdn.net/qq_38872310/article/details/79805445 tengine 配置: location / { root html; index index.html index.htm; } location = /nginx_stat 阅读全文

posted @ 2019-01-14 10:26 rigidwang 阅读(217) 评论(0) 推荐(0) 编辑

tengine 配置集群、监控
摘要:#user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections ... 阅读全文

posted @ 2019-01-08 09:45 rigidwang 阅读(452) 评论(0) 推荐(0) 编辑

.vimrc 设置
摘要:set showmode set rulerset autoindentsyntax onset ts=4set expandtabset autoindent 阅读全文

posted @ 2019-01-08 09:18 rigidwang 阅读(109) 评论(0) 推荐(0) 编辑

linux screen命令
摘要:screen commands: # 新增会话screen -S <session name> # 查询会话screen -ls # 删除会话screen -r <detached screen pid> # 退出会话ctrl + a,dctrl + a,kscreen -X -S <session 阅读全文

posted @ 2018-12-11 13:30 rigidwang 阅读(131) 评论(0) 推荐(0) 编辑

linux path 配置习惯
摘要:JAVA_HOME=/usr/jdk1.8.0_131export JAVA_HOMEMAVEN_HOME=/usr/apache-maven-3.3.9export MAVEN_HOMEJENKINS_HOME=/usr/JenkinsHomeexport JENKINS_HOMEPATH=$PA 阅读全文

posted @ 2018-02-26 11:47 rigidwang 阅读(88) 评论(0) 推荐(0) 编辑

centos 卷组、挂在、扩容
摘要:http://www.mamicode.com/info-detail-515900.html 一、LVM简介 LVM是 Logical Volume Manager(逻辑卷管理)的简写,它是Linux环境下对磁盘分区进行管理的一种机制。LVM将一个或多个磁盘分区(PV)虚拟为一个卷组(VG),相当 阅读全文

posted @ 2017-07-03 14:18 rigidwang 阅读(1571) 评论(0) 推荐(0) 编辑

Centos7--traceroute
摘要:通过traceroute我们可以知道信息从你的计算机到互联网另一端的主机是走的什么路径。当然每次数据包由某一同样的出发点(source)到达某一同样的目的地(destination)走的路径可能会不一样,但基本上来说大部分时候所走的路由是相同的。linux系统中,我们称之为traceroute,在M 阅读全文

posted @ 2017-05-25 17:04 rigidwang 阅读(10118) 评论(0) 推荐(0) 编辑

Centos7 firewalld
摘要:1.基本用法启动: systemctl start firewalld查看状态: systemctl status firewalld 停止: systemctl disable firewalld禁用: systemctl stop firewalld 2.systemctl是CentOS7的服务 阅读全文

posted @ 2017-05-25 16:49 rigidwang 阅读(134) 评论(0) 推荐(0) 编辑

linux 路由
摘要: 阅读全文

posted @ 2016-11-17 21:51 rigidwang 阅读(111) 评论(0) 推荐(0) 编辑

centos iptables
摘要:1.查看本机关于IPTABLES的设置情况iptables -L -niptables --listmore /etc/sysconfig/iptablesservice iptables status #查看状态 2.清除原有规则iptables -Fiptables -X 保存规则/etc/rc 阅读全文

posted @ 2016-11-17 15:13 rigidwang 阅读(136) 评论(0) 推荐(0) 编辑

CentOS 6.5 源码安装MySQL5.6.26
摘要:1:下载安装cmake (mysql5.5以后是通过cmake来编译的) 2:创建mysql的安装目录及数据库存放目录 #mkdir /usr/mysql //安装mysql #mkdir /usr/mysql/data //存放数据库 3:创建mysql用户及用户组 #groupadd mysql 阅读全文

posted @ 2016-03-19 11:38 rigidwang 阅读(205) 评论(0) 推荐(0) 编辑

centos6.5 扩容
摘要:参考:http://www.cnblogs.com/sixiweb/p/3360008.html 阅读全文

posted @ 2016-03-15 14:15 rigidwang 阅读(624) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

统计

点击右上角即可分享
微信分享提示