上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页
摘要: Linux时间同步.md ntpdate time.ntp.org 阅读全文
posted @ 2022-05-28 17:40 nsfoxer 阅读(27) 评论(0) 推荐(0)
摘要: iptables 基本概念 iptables 可以检测、修改、转发、重定向和丢弃 IPv4 数据包。过滤 IPv4 数据包的代码已经内置于内核中,并且按照不同的目的被组织成 表 的集合。表 由一组预先定义的 链 组成,链 包含遍历顺序规则。每一条规则包含一个谓词的潜在匹配和相应的动作(称为 目标), 阅读全文
posted @ 2022-05-28 17:40 nsfoxer 阅读(50) 评论(0) 推荐(0)
摘要: bash shell 技巧 逐行读取文件内容 指定换行符读取: #! /bin/bash IFS=" " for LINE in `cat /etc/passwd` do echo $LINE done 文件重定向给read处理: #! /bin/bash cat /etc/passwd | whi 阅读全文
posted @ 2022-05-28 17:40 nsfoxer 阅读(109) 评论(0) 推荐(0)
摘要: linux cmd base64 base64 用法:base64 [选项]... [文件] Base64 encode or decode FILE, or standard input, to standard output. 如果没有指定文件,或者文件为"-",则从标准输入读取。 必选参数对长 阅读全文
posted @ 2022-05-28 17:40 nsfoxer 阅读(50) 评论(0) 推荐(0)
摘要: Tomcat8配置 Tomcat8配置多个项目 需要放置多个war项目在/var/lib/tomcat/webapps/下 编辑/etc/tomcat[7-8]/server.xml 在<Host>下,增加如下 说明: docBase文件路径,绝对路径或相对路径都可以 - `path` web的UR 阅读全文
posted @ 2022-05-28 17:40 nsfoxer 阅读(34) 评论(0) 推荐(0)
摘要: mariadb 一、用户新建与权限 新建用户(管理员权限) #查看用户列表 select host,user,authentication_string from mysql.user; #新建用户 insert into mysql.user(user,host,password) values( 阅读全文
posted @ 2022-05-28 17:40 nsfoxer 阅读(186) 评论(0) 推荐(0)
摘要: VIM使用 | 操作 | 效果 | | : : | : : | | f | | | t | 只把光标移动到目标字符的前一个字符上 | | [num]% | "50%" 移动到文件的中间, 而 "90%" 移到差不多结尾的位置 | | % | 括号匹配 | | CTRL-U | 向下(文本向上)滚动半 阅读全文
posted @ 2022-05-28 17:40 nsfoxer 阅读(48) 评论(0) 推荐(0)
摘要: ​ 懂了!VMware/KVM/Docker原来是这么回事儿 云计算时代,计算资源如同小马哥当年所言,已经成为了互联网上的水和电。 虚拟主机、web服务器、数据库、对象存储等等各种服务我们都可以通过各种各样的云平台来完成。 而在云计算欣欣向荣的背后,有一个重要的功臣,那就是虚拟化技术。可以毫不客气的 阅读全文
posted @ 2022-05-28 17:40 nsfoxer 阅读(56) 评论(0) 推荐(0)
摘要: 进程 进程号 getpid() pid_t getpid(void) ​ Linux内核2.4与其更早版本,进程号上限32767。上限由内核常量PID_MAX定义。Linux2.6之后可更改/proc/sys/kernel/pid_max。内核参数修改:/etc/sysctl.d/99-sysctl 阅读全文
posted @ 2022-05-28 17:40 nsfoxer 阅读(30) 评论(0) 推荐(0)
摘要: 多线程 Hello world线程 线程创建pthread_create() int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine) (void *), void *arg); 阅读全文
posted @ 2022-05-28 17:40 nsfoxer 阅读(40) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页