Centos7.3防火墙配置
1、查看firewall服务状态
systemctl status firewalld
2、查看firewall的状态
firewall-cmd --state
3、开启、重启、关闭、firewalld.service服务
# ...
fento
5年前 (2018-07-23) 2550℃ 0评论
37喜欢
cat /proc/cpuinfo # 查看CPU信息
free -m # 查看内存使用量和交换区使用量
df -h # 查看各分区使用情况du -sh # 查看指定目录的大小
df -i i参数指的是inode
fdisk -l # 查看所...
fento
6年前 (2018-01-12) 588℃ 0评论
0喜欢
救援模式
进不了系统,用救援模式
重启 CD启动,在安装界面选择,Rescue installed system
原本系统被挂在到 /mint/sysimage 下面可以进去修改
shell start shell 进入一种模式
change root /mnt/sysimag...
fento
6年前 (2018-01-05) 489℃ 0评论
0喜欢
/etc/init/rcs.conf
init 0 关机
init 1 单用户
init 2 不带有NFS的3级别
init 3 minimal安装的命令模式
init 4 空白保留
init 5 图形化
init 6 重启
vi /etc/ssh/ssh...
fento
6年前 (2018-01-03) 501℃ 0评论
0喜欢
第二讲:
dhclient
如果已经启动要再次启动,则killall dhclient
vi /etc/sysconfig/network-scripts/n
ONBOOT=YES 开机自启动网卡
IPADDR=192.168.11.98
NETMASK=255...
fento
6年前 (2018-01-02) 475℃ 0评论
0喜欢
1.输入如下命令,查询当前系统中的数据盘。
# fdisk -l
2. 执行如下命令,对数据盘进行分区
# fdisk /dev/vdb
3.在弹出的命令行中需要输入的参数是:
Command(m for help)输入n;
Command action输入p;
...
fento
6年前 (2017-11-14) 476℃ 0评论
0喜欢
安装方法
在liunx下原本是不支持rar文件的,需要安装liunx下的winrar版本,操作如下
http://www.rarsoft.com/download.htm 下载页面
wget http://www.rarsoft.com/rar/rarlinux-4.0....
fento
6年前 (2017-11-01) 482℃ 0评论
0喜欢
方案一:修改配置文件
1)检查pip.conf文件是否存在
>> cd ~
>> mkdir .pip
>> ls ~/.pip
2)直接编辑pip.conf
sudo vi ~/.pip/pip.conf
[global]
index-url...
fento
6年前 (2017-11-01) 477℃ 0评论
0喜欢
修改/etc/ssh/sshd_config
vi /etc/ssh/sshd_config
#Port 22 //这行去掉#号,防止配置不好以后不能远程登录,还得去机房修改,等修改以后的端口能使用以后在注释掉
Port 33378 //下面添加这...
fento
6年前 (2017-10-28) 396℃ 0评论
0喜欢
LNMP下的Nginx如果想将域名lnmp.org 301重定向到www.lnmp.org,同时www.lnmp.org已经添加上,可以按如下步骤修改 使用命令编辑器vi、nano或winscp图形管理软件编辑对应的虚拟主机,一般虚拟主机配置文件位于:/usr/local/ngi...
fento
6年前 (2017-10-27) 456℃ 0评论
0喜欢