随笔分类 -  Linux (操作篇)

常用操作
摘要:查看ascii码表 man ascii 阅读全文

posted @ 2021-10-21 09:51 lodger47 阅读(12) 评论(0) 推荐(0)

Centos 6.x和Centos 7.x的不同
摘要:【原文链接】https://blog.51cto.com/u_12674559/2095807 阅读全文

posted @ 2021-09-17 09:23 lodger47 阅读(27) 评论(0) 推荐(0)

服务器磁盘阵列卡RAID0,1,5,10
摘要:【原文链接】https://blog.51cto.com/u_12674559/2091760 阅读全文

posted @ 2021-09-17 09:21 lodger47 阅读(36) 评论(0) 推荐(0)

Linux常见服务器存储类型和iSCSI共享存储
摘要:[原文链接]https://blog.51cto.com/u_12674559/2105908 阅读全文

posted @ 2021-09-17 09:16 lodger47 阅读(39) 评论(0) 推荐(0)

网络基础知识
摘要:【原文链接】https://blog.51cto.com/u_12674559/2104540 阅读全文

posted @ 2021-09-17 08:58 lodger47 阅读(26) 评论(0) 推荐(0)

iptables
摘要:iptables 系统服务 脚本位置: /etc/init.d/iptables 规则文件位置: /etc/sysconfig/iptables 使用脚本配置防火墙的规则 编写防火墙脚本 → 开机时自动执行该脚本 脚本执行指令写入 /etc/rc.d/rc.local. 记得给rc.local加执行 阅读全文

posted @ 2021-09-09 23:03 lodger47 阅读(53) 评论(0) 推荐(0)

Centos6-7的开机流程
摘要:Centos6 Centos7 自启动脚本的一种方法 方法一 1、赋予脚本可执行权限(/opt/scripts/test.sh是你的脚本路径) chmod +x /opt/scripts/test.sh 2、打开/etc/rc.d/rc/local文件,在末尾增加如下内容 /opt/scripts/ 阅读全文

posted @ 2021-09-09 20:05 lodger47 阅读(55) 评论(0) 推荐(0)

日志分析和安全
摘要:![](https://img2020.cnblogs.com/blog/1843414/202109/1843414-20210909105306438-1131746258.png) 阅读全文

posted @ 2021-09-09 10:56 lodger47 阅读(19) 评论(0) 推荐(0)

top操作
摘要:![](https://img2020.cnblogs.com/blog/1843414/202109/1843414-20210909101602085-149165872.png) 阅读全文

posted @ 2021-09-09 10:16 lodger47 阅读(28) 评论(0) 推荐(0)

ssh密钥
摘要:ssh连接服务器慢的解决方法 ssh服务端 配置文件/etc/ssh/sshd_config 把以下2项修改为,并重启ssh服务 UseDNS no GSSAPIAuthentication no ssh身份认证阶段中解释过,ssh认证的过程其实是客户端(ssh命令端)读取自己的私钥并推导出指纹发送 阅读全文

posted @ 2021-09-08 08:17 lodger47 阅读(330) 评论(0) 推荐(0)

linux实现类似windows显示器不休眠
摘要:方式一:命令行方式 # setterm -blank 0 # setterm -blank n (n为等待时间) 方式二:编辑配置文件 ## 编辑xorg.conf,添加如下选项把xscreen saver直接关闭: Section “ServerFlags” Option “BlankTime” 阅读全文

posted @ 2021-09-05 09:40 lodger47 阅读(391) 评论(0) 推荐(0)

liunx 个性化ssh登陆界面
摘要:Ubuntu /etc/update-motd.d/文件夹下的几个脚本 00-header 10-help-text 90-updates-available 91-release-upgrade 98-fsck-at-reboot 98-reboot-required Centos /etc/is 阅读全文

posted @ 2021-09-03 08:47 lodger47 阅读(124) 评论(0) 推荐(0)

linux alias设置
摘要:临时设置 alias cp='cp –i' unalias cp 取消系统的别命令 alias rm='rm -f' alias ...='cd ../..' alias ....='cd ../../../' alias egrep='egrep --color=auto' alias grep= 阅读全文

posted @ 2021-08-16 15:29 lodger47 阅读(149) 评论(0) 推荐(0)

crontab
摘要:![](https://img2020.cnblogs.com/blog/1843414/202108/1843414-20210805190237217-679340301.png) 阅读全文

posted @ 2021-08-05 19:03 lodger47 阅读(27) 评论(0) 推荐(0)

vsftpd匿名用户上传和下载
摘要:首先 /var/ftp/pub 为满权限 其次 从配置文件下手 anonymous_enable=YES local_enable=YES write_enable=YES anon_root=/var/ftp anon_upload_enable=YES anon_mkdir_write_enab 阅读全文

posted @ 2021-07-29 17:44 lodger47 阅读(191) 评论(0) 推荐(0)

yum install 时总是报错误
摘要:......[Errno 14] curl#7 - "Failed connect to mirrors.aliyuncs.com:80; Connection refused" 解决办法 yum clean all yum makecache [root@master ~]# vi /etc/re 阅读全文

posted @ 2021-07-24 10:52 lodger47 阅读(430) 评论(0) 推荐(0)

linux 安装软件
摘要:源码安装务必要加上 --prefix=/usr/local/xxx 阅读全文

posted @ 2021-07-13 11:47 lodger47 阅读(17) 评论(0) 推荐(0)

Linux系统下安装了哪些软件包,命令在什么存在什么地方
摘要:which|whereis 查找命令在那个路径 rpm 要查找的软件包 rpm -qa (列出所有安装了的包) rpm -e package (删除某个包) rpm -qi package (查询某个包) rpm -qf command (根据程序查询包的名字) rpm -ql package (查 阅读全文

posted @ 2021-07-13 10:06 lodger47 阅读(186) 评论(0) 推荐(0)

开发常用工具
摘要:nar流量测试命令 netperf带宽测试工具 redid-benchmark nmon CPU、带宽监控工具 google perftool 找到最耗cpu的函数。 https://github.com/gperftools/gperftools.git yum install autoconf 阅读全文

posted @ 2021-07-11 16:18 lodger47 阅读(41) 评论(0) 推荐(0)

redis 发布/订阅模式
摘要:实现进程间的消息传递 "发布/订阅"(publish/subscribe)分别是发布者和订阅者。订阅者可以订阅一个或者多个频道(channel),而发布者可以向指定的频道(channel)发送消息,所有订阅此频道的订阅者都会收到此消息 发布者发布消息的命令是 publish,用法是 publish 阅读全文

posted @ 2021-07-10 14:37 lodger47 阅读(69) 评论(0) 推荐(0)

导航