Linux基础学习

Linux

linux与windows共享文件夹

有的时候即使安装了vmtools仍然不能查看到具体的共享文件夹。这个时候需要

sudo vmhgfs-fuse .host:/shared /mnt/hgfs

注意格式 shared 为分享的文件名 .host前面有个空格

sudo 要加 我之前不加一直有错误

执行完后 查看

关于持久化挂载

上述能展示分享文件,但是重启虚拟机后分享文件小时

按照网上说的修改

$ vi /tec/fstab

添加

.host:/file_name vmhgfs /mnt/hgfs defaults 0 0

没有作用 反而会引起系统 emegency mode

暂时还没有解决
原文链接:https://blog.csdn.net/jasonhector/article/details/78679135

切换到root用户

由于很多文件和文件夹操作需要劝降,所以需要切换到root用户下

su root

Job for network.service failed because the control process exited with error code. See “systemctl status network.service” and “journalctl -xe” for details

将ifcfg-xxx文件中的DEVICE一行注释掉或者删掉

Redirecting to /bin/systemctl status iptables.service
Unit iptables.service could not be found.

解决办法

1. 使用systemctl

systemctl [start|stop|restart|save|status] iptables.service

2. 安装iptables-services

切换到root用户下,执行:

yum install iptables-services`
`systemctl enable iptables.service //设置开机启动

之后就可以使用以下指令了:

service iptables [start|stop|restart|save|status]

centos7和centos 6不同的关闭防火墙的方式

https://www.linuxidc.com/Linux/2016-12/138979.htm

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值