Linux (15 posts)

CentOS8 modify SSH port 22,disable root

Steven · 2021-02-01 17:26 · 39 views · Linux

[root@centos8 ~]# cat /etc/redhat-release CentOS Linux release 8.2.2004 (Core) 1. Create Test SUDO user and add to wheel group. [root@centos8 ~]# useradd testuser [root@centos8 ~]# passwd testuser Cha

Read more

Centos 下启动Apache

Admin · 2021-01-30 10:42 · 20 views · Linux

1、查看安装信息 find / -name ‘httpd’ 2、安装路径 /usr/local/apache2 /usr/local/apache2/bin/apachectl start /usr/local/apache2/bin/apachectl stop /usr/local/apache2/bin/apachectl restart 3、如果apache 安装成为linux 的服务器的

Read more

Ubuntu lauched SSH

Admin · 2021-01-30 10:32 · 33 views · Linux

1、installing openssh-server $sudo apt-get install openssh-server 2、check openssh-server status $ ps -e | grep ssh 3、start/stop/restart openssh-server /etc/init.d/ssh start /etc/init.d/ssh stop /etc/in

Read more

RPM命令常用参数

Admin · 2020-12-14 23:43 · 22 views · Linux

-q 在系统中查询软件或查询指定rpm包的内容信息 -i 在系统中安装软件 -U 在系统中升级软件 -e 在系统中卸载软件 -h 用#(hash)符显示rpm安装过程 -v 详述安装过程 -p 表明对RPM包进行查询,通常和其它参数同时使用,如: -qlp 查询某个RPM包中的所有文件列表 -qip 查询某个RPM包的内容信息 rpm-ih package.rpm即表示安装package并用#符显

Read more

用yum查询想安装的软件

Admin · 2020-12-14 23:42 · 20 views · Linux

我们常会碰到这样的情况,想安装一个软件,只知道它和某方面有关,但又不能确切知道它的名字。这时yum的查询功能就起作用了。我们可以用 yum search keyword这样的命令来进行搜索,比如我们要则安装一个Instant Messenger,但又不知到底有哪些,这时不妨用 yum search messenger这样的指令进行搜索,yum会搜索所有可用rpm的描述,列出所有描述中和messeg

Read more