1.Linux常见命令 /etc/motd 系统登录后提示文件 /etc/issue 系统登录前提示文件 cat 查看文本文件 free -h 查看内存 tty 查看端口 echo $SHELL 查看shell类型 cat /etc/shells 查看所有shell类型(打开 文件夹) ps aux ...
分类:
系统相关 时间:
2020-03-22 18:03:01
阅读次数:
95
vi /etc/ssh/sshd_config #AllowAgentForwarding yes AllowTcpForwarding yes #GatewayPorts no X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost no //网 ...
分类:
其他好文 时间:
2020-02-13 13:02:07
阅读次数:
183
Ubuntu18.04初始的systemd service 两个位置 1. 2. ...
分类:
系统相关 时间:
2019-12-21 11:58:25
阅读次数:
390
Django项目搭建 2019.09.25dw 1、潭州提供的虚拟机账号和密码: 普通账号:pyvip密码pythonvip 数据库Root账号:admin密码Root110qwe 命令:cat /etc/motd (查看各种潭州账号) 修改root密码命令:sudo passwd root /et ...
分类:
其他好文 时间:
2019-11-28 11:44:48
阅读次数:
91
/etc目录下的重要目录和文件/etc/issue记录用户登录前显示的系统版本信息/etc/motd登录后的提示信息/etc/redhat-release显示系统版本号和名称/etc/group设定用户的组名与相关信息/etc/passwd账号信息文件/etc/shadow密码信息文件/etc/sudoers可以执行使用sudo命令的配置文件/etc/securetty设定哪些终端可以让root登
分类:
其他好文 时间:
2019-08-25 01:27:26
阅读次数:
135
-- logrotate - rotates, compresses, and mails system logs 日志轮转 rotate 日志切割 轮转 切割 备份 归档 常见的默认已经定义轮转的日志有: /var/log/messages /var/log/cron /var/log/boot. ...
分类:
其他好文 时间:
2019-08-10 13:45:28
阅读次数:
89
一、SSH登录信息 1.修改ssh的配置文件/etc/ssh/sshd_config 2.找到如下信息,设置SSH欢迎信息的文件 3.创建该文件并且编辑该文件 4.重启看看效果 二、欢迎信息 1、修改欢迎信息配置 文件 /etc/motd,写上自定义的文本信息 2、重启 ...
分类:
其他好文 时间:
2019-07-06 16:16:14
阅读次数:
122
centos7系统中已经默认安装rsync 1:主服务器配置 (1)修改rsyncd.conf 配置文件 [root@localhost app]# vi /etc/rsyncd.conf motd file = /etc/rsyncd.motdlog file = /var/log/rsyncd. ...
分类:
其他好文 时间:
2019-04-16 14:29:14
阅读次数:
213
用root用户登录终端 vim /etc/motd 然后输入欢迎语或者将文本粘贴进去保存退去就好了 如图: 是不是很炫酷呢? ...
分类:
其他好文 时间:
2019-02-21 10:55:19
阅读次数:
188
文件及路径: /etc/motd 实例: 提示信息也可以在 远程主机的 /etc/ssh/sshd_config 中定义(需重启服务才会生效),但习惯和方便,一般在 /etc/motd 文件中定义即可。 ...
分类:
其他好文 时间:
2019-01-24 11:56:48
阅读次数:
186