fedora21之常用命令

简介:

1 防火墙

关闭

systemctl stop firewalld

禁止自启动

systemctl disable firewalld

2 设置机器名

hostnamectl set-hostname wisely

3 系统服务

显示运行的系统服务 systemctl

显示所有的系统服务 systemctl list-unit-files

开启、关闭、自启动、取消自启动、状态 systemctl start 服务名

systemctl stop 服务名

systemctl enable 服务名

systemctl disable 服务名

systemctl status 服务名

4 日志

journalctl -u 服务名 -f

目录
相关文章
|
3月前
|
缓存 Linux Shell
Linux yum常用命令
Linux yum常用命令
23 4
|
8月前
|
关系型数据库 MySQL Linux
Linux——rpm的常用命令
Linux——rpm的常用命令
|
Ubuntu C++
Ubuntu常用命令
Ubuntu常用命令
62 0
|
Ubuntu JavaScript Linux
centos7.4常用命令
centos7.4常用命令
193 0
|
Ubuntu
ubuntu 基本命令
普通用户切换到root用户sudo su切换到普通用户exit
1302 0
|
Linux
CentOS 常用命令
centos,linux 常用的命令备忘。
1080 0
|
Linux 缓存
Linux中yum和rpm常用命令
Linux中yum和rpm常用命令
3949 0
|
安全 Ubuntu Shell
ubuntu 常用命令
用户相关 添加用户 $ sudo useradd -g sambashare dev $ sudo passwd dev 为用户添加bash $ usermod -s /usr/bin/bash u1 查看用户组 $ groups de...
1209 0
|
Ubuntu 应用服务中间件