Category Archives: CentOS

如何安装phpmyadmin

1、下载安装包并安装服务

yum install phpmyadmin

2、开启远程访问(默认情况下只有127.0.0.1的地址能访问)

2.1打开配置文件 vi /etc/httpd/conf.d

1
2
3
4
 
     # Apache 2.4
 
       Require ip[......]<p class="read-more"><a href="https://www.yusian.com/blog/centos/2014/09/16/142716659.html">继续阅读</a></p>

CentOS 命令行登录欢迎词

1、修改/ect/motd文件即可如:

1
2
3
yusiandeMacBook-Pro:~ yusian$ ssh root@example.com
root@example.com's password: 
Last login: Mon Jul 28 13:57:59 2014 from 112.216[......]<p class="read-more"><a href="https://www.yusian.com/blog/centos/2014/07/28/140535662.html">继续阅读</a></p>

CentOS SSH登录增加欢迎页(Banner)

1、进入SSH的配置目录

[root@Crayfish ~]# cd /etc/ssh

2、修改配置文件

1
2
3
[root@Crayfish ssh]# vi sshd_config 
 
#       $OpenBSD: sshd_config,v 1.80 2008/07/02 02:24:18[......]<p class="read-more"><a href="https://www.yusian.com/blog/centos/2014/07/28/134803664.html">继续阅读</a></p>

CentOS常用到的查看系统命令

1
2
3
4
5
# uname -a               # 查看内核/操作系统/CPU信息
# head -n 1 /etc/issue   # 查看操作系统版本
# cat /proc/cpuinfo      # 查看CPU信息
# hostname               # 查看计算机名
#[......]<p class="read-more"><a href="https://www.yusian.com/blog/centos/2014/07/27/155053625.html">继续阅读</a></p>