1. Linux 基本操作 1 基本命令 序号命令对应英文作用 1 ls list 查看当前文件夹下的内容 2 pwd print work directory 查看当前所在文件夹 3 Cd [目录名] change directory 切换文件夹 4 Touch [文件名] touch 如果文件不 ...
分类:
系统相关 时间:
2019-11-16 10:58:11
阅读次数:
84
一、 第三课 1. cat 命令 cat 用来查看文件内容的,一般查看短小文件内容。看大文件用more 命令 2. more 命令 more大小文件都可以看,未知情况下可以使用more. 3. head -n 15 anaconda-ks.cfg 看前15行 4. tail -f /ver/ 看文件 ...
分类:
其他好文 时间:
2019-11-15 22:26:58
阅读次数:
73
1.问题 最近发现SparkStreaming提交的job经常在半夜挂掉,于是写了个定时任务监控SparkStreaming的运行状态,保证其不挂掉 2.shell脚本 ~~~ touch /opt/module/jobs/monitorlog.txt vim /opt/module/jobs/mo ...
分类:
其他好文 时间:
2019-11-14 23:54:59
阅读次数:
162
awk学习 建立一个空文件 touch awk_test.txtawk '{print}' awk_test.txt awk '{print $1}' awk_test.txt awk '{print $1 "\t" $2}' awk_test.txtawk '{print NR "\t" $1 " ...
分类:
系统相关 时间:
2019-11-14 21:49:58
阅读次数:
77
创建软链接 ln -fs /lib/systemd/system/rc-local.service /etc/systemd/system/rc-local.service 编辑配置文件 vim /etc/systemd/system/rc-local.service # SPDX-License- ...
分类:
系统相关 时间:
2019-11-12 13:06:14
阅读次数:
106
//Manjaro $ sudo pacman -S mysql++ $ touch main.cpp $ vim main.cpp 1 # include <iostream> 2 # include <mysql++.h> 3 4 using namespace std; 5 6 int mai ...
分类:
数据库 时间:
2019-11-11 23:07:37
阅读次数:
134
4. redis持久化 是一种内存型数据库,一旦服务器进程退出,数据库的数据就会丢失,为了解决这个问题, 提供了两种持久化的方案,将内存中的数据保存到磁盘中,避免数据的丢失。 4.1 RDB持久化 提供了 的功能,这个功能可以将 在内存中的的状态保存到硬盘中,它可以 手动执行。 也可以再 中配置, ...
分类:
其他好文 时间:
2019-11-10 19:24:47
阅读次数:
91
#touch /usr/local/nginx/sbin/cut_nginx_log.sh #chmod 755 /usr/local/nginx/sbin/cut_nginx_log.sh 下面是脚本具体内容 #! /bin/bash logs_path="/usr/local/nginx/log ...
分类:
其他好文 时间:
2019-11-10 15:56:17
阅读次数:
106
移动端下弹框禁止背景滑动 茴字写法有很多种,找到最适合的才是好的。 以下下方法在一屛之内是可行的 body;html 设置overflow:hidden .overflow-hidden{ height: 100%; overflow: hidden; } // 弹出时 $('html, body, ...
分类:
移动开发 时间:
2019-11-09 09:18:00
阅读次数:
97