linux
Linux 教程 Linux 是一种自由和开放源码的类 UNIX 操作系统。 Linux 英文解释为 Linux is not Unix。
盖了帽
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
使用postfix和dovecot搭建邮件服务器
创建系统用户useradd peining1passwd peining1 # 密码设为 123456useradd peining2passwd peining3 # 密码设为 123456安装postfix和dovecotyum install -y postfixyum install -y dovecot配置并启动postfixvim /etc/postfix/main.cfmyhostname = mail.gosuncn.funmydomain = g.原创 2021-02-26 14:33:42 · 615 阅读 · 0 评论 -
设置系统光盘开机自动挂载
查看光盘文件[root@machine01 ~]# ls /dev/cdrom /dev/cdrom编辑文件/etc/fstab[root@machine01 ~]# vim /etc/fstab添加最后一行的内容 /dev/cdrom /mnt iso9660 defaults 0 0/dev/mapper/centos-root / xfs defaults 0 0UUID=32ac6609-30f3-467f-bb86原创 2021-02-25 15:11:01 · 586 阅读 · 0 评论 -
ifconfig命令操作网卡
安装ifconfig命令若系统提示未安装ifconfig软件,可通过以下命令安装:yum -y install net-tools查看网卡信息[root@machine01 ~]# ifconfigens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.0.1 netmask 255.255.255.0 broadcast 10.0.0.255 inet6 fe80原创 2021-02-25 15:01:33 · 790 阅读 · 0 评论 -
CentOS-7替换Aliyun的yum源
在目录/etc/yum.repos.d下新建一个文件以.repo结尾,比如CentOS-Aliyun.repo。并且填充镜像内容:使用以下命令即可cat >/etc/yum.repos.d/CentOS-Aliyun.repo <<EOF[alibase]name=CentOS-$releasever - Base - mirrors.aliyun.comfailovermethod=prioritybaseurl=http://mirrors.aliyun.com/cen原创 2021-02-25 10:49:21 · 284 阅读 · 0 评论 -
设置SELinux的模式
查看SELinux模式 getenforce设置SELinux setenforce [Enforcing|Permissive|1|0]配置SELinux[root@gosuncn ~]# cat /etc/selinux/config # This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing - SELinux原创 2021-02-24 21:25:07 · 413 阅读 · 0 评论
分享