随笔分类 -  Linux运维

摘要:vim /etc/hosts.allowsshd:192.168.31.109:allow //只允许192.168.31.109登录vim /etc/hosts.denysshd:ALL //开启白名单,只允许192.168.31.109登录systemctl restart sshd ,重启ss 阅读全文
posted @ 2020-06-23 11:39 jiftle 阅读(3502) 评论(0) 推荐(0) 编辑
摘要:一. 设置firewall规则 例1:对外暴露8080端口 firewall-cmd --permanent --add-port=8080/tcp 例2:使mysql服务的3306端口只允许192.168.1.1/24网段的服务器能访问 #添加规则 firewall-cmd --permanent 阅读全文
posted @ 2020-06-23 11:04 jiftle 阅读(2783) 评论(0) 推荐(0) 编辑
摘要:# Nginx配置TCP服务负载均衡## 前置条件- nginx 1.18 (1.9之后支持tcp负载)- 两个前置服务## 配置文件修改LegacyStable```# cat nginx.confuser nginx;# 增加工作线程worker_processes 4;error_log /v 阅读全文
posted @ 2020-06-05 15:16 jiftle 阅读(1989) 评论(0) 推荐(0) 编辑
摘要:安装python 3.x: 1.sudo apt-get install python3 安装完成后 2.sudo apt-get install ipython3 它所相对应的python版本为python3,是下面这个样子的 阅读全文
posted @ 2020-06-01 19:52 jiftle 阅读(561) 评论(0) 推荐(0) 编辑
摘要:拉取镜像 https://store.docker.com/community/images/sameersbn/bind docker pull sameersbn/bind 生成容器 docker run --name bind -d --restart=always \ --publish 5 阅读全文
posted @ 2020-05-22 12:05 jiftle 阅读(5646) 评论(1) 推荐(0) 编辑
摘要:测试环境 deepin 20.3, deepin 20.9 安装步骤 # 安装服务【deepin 20.9 默认已经预装,但是没有开机启动】 sudo apt install openssh-server # 启动服务ssh sudo systemctl start ssh # 设置开机自启动 su 阅读全文
posted @ 2020-05-21 08:57 jiftle 阅读(605) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/luotingliang/p/7251496.html 1.查看安装的所有软件 dpkg -l 例如:dpkg -l | grep ftp 2.查看软件安装的路径 dpkg -L | grep ftp 也可以用 whereis ftp 3.查看软件版本 阅读全文
posted @ 2020-05-20 15:01 jiftle 阅读(15615) 评论(0) 推荐(0) 编辑
摘要:windows C:\Windows\System32\drivers\etc\hosts linux /etc/hosts 二、域名映射 # 公司Git服务器 192.168.0.196 git.newcapec.cn 阅读全文
posted @ 2020-05-20 14:34 jiftle 阅读(439) 评论(0) 推荐(0) 编辑
摘要:Stacer is an open source system optimizer and application monitor that helps users to manage entire system with different aspects, its an all in one s 阅读全文
posted @ 2020-05-19 23:37 jiftle 阅读(344) 评论(0) 推荐(0) 编辑
摘要:安装完,重启显示 4m[terminated],卡住。 强制重启停止在Bios界面,不进入。 网上说,有可能是硬件不兼容。 阅读全文
posted @ 2020-05-13 13:10 jiftle 阅读(2390) 评论(0) 推荐(0) 编辑
摘要:参考文章: 服务的依赖关系查看 https://www.pianshen.com/article/9810282044/ Linux服务文件手册 https://www.freedesktop.org/software/systemd/man/systemd.service.html linux s 阅读全文
posted @ 2020-05-08 16:44 jiftle 阅读(963) 评论(0) 推荐(0) 编辑
摘要:``` apt-get update apt install iputils-ping ``` 阅读全文
posted @ 2020-04-13 15:34 jiftle 阅读(10091) 评论(0) 推荐(1) 编辑
摘要:| 变量 | 说明 | | : | : | | $$ | Shell本身的PID(ProcessID) | | $! | Shell最后运行的后台Process的PID | | $? | 最后运行的命令的结束代码(返回值) | | $ | 使用Set命令设定的Flag一览 | | $ | 所有参数列 阅读全文
posted @ 2020-01-13 11:34 jiftle 阅读(155) 评论(0) 推荐(0) 编辑
摘要:Linux命令行常用快捷键 以下命令为Linux中高频发常用命令,适用于Linux中远程连接客户端软件“SecureCTR”和“Xshell” 。其他远程客户端软件使用情况基本与之类似 高频命令 补全命令 tab 补全命令,每补全一个字符至少两次。 移动光标快捷键: Ctrl+a 光标回到命令行首。 阅读全文
posted @ 2019-12-31 11:30 jiftle 阅读(391) 评论(0) 推荐(0) 编辑
摘要:持久化 undo/redo " 在你的 vimrc 加入 set undofile " Maintain undo history between sessions " 设置你的undo保存位置,你需要先 mkdir ~/.vim/undodir set undodir=~/.vim/undodir 阅读全文
posted @ 2019-12-28 21:53 jiftle 阅读(3683) 评论(0) 推荐(0) 编辑
摘要:boot2docker 简介 boot2docker是解决非linux系统下运行Docker容器不方便的工具 官方介绍 Boot2Docker是在Windows操作系统上运行Docker的唯一方法,现在已经被Docker Machine代替。 阅读全文
posted @ 2019-12-18 17:33 jiftle 阅读(709) 评论(0) 推荐(0) 编辑
摘要:原理 Docker支持图形化程序,是利用Linux的X11技术。 相关文章 "如何在Docker容器中启动D Bus" 引文详情 阅读全文
posted @ 2019-12-10 11:30 jiftle 阅读(1077) 评论(0) 推荐(0) 编辑
摘要:ubuntu下的用户可以只用apt get来安装: 其他发行版的用户可以选择自己的安装方式,也可以用源码编译安装,xclip项目的主页是:http://sourceforge.net/projects/xclip/ xclip可以将内容输出到‘X’的剪切板中,比如: 引用 "Linux: xclip 阅读全文
posted @ 2019-12-03 14:01 jiftle 阅读(1969) 评论(0) 推荐(0) 编辑
摘要:Centos7搭建FTP服务详细过程https://blog.csdn.net/sinat_30802291/article/details/81706152 阅读全文
posted @ 2019-11-05 16:54 jiftle 阅读(357) 评论(0) 推荐(0) 编辑

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