SVN操作命令集合

删除命令

Rm -rf 目录名字

-r 就是向下递归,不管有多少级目录,一并删除

-f 就是直接强行删除,不作任何提示的意思

 

Linux firewalld开放端口

firewall-cmd --zone=public --add-port=3690/tcp --permanent

firewall-cmd--reload

 

关闭Linux的firewalld,启动以前的iptables防火墙

把Centos7自带的防火墙firewalld关闭,然后开启之前的版本iptables。

systemctl stop firewalld //关闭firewalld服务

systemctl disable firewalld //禁止firewalld服务开机启动

yum install -y iptables-services //安装iptables-services

systemctl enable iptables //让它开机启动

systemctl start iptables //启动iptables

现在就可以 使用之前版本的iptables了。CentOS上默认有iptables规则,这个规则虽然很安全,但对于我们来说没有用,反而会造成某些影响,所以建议先清除规则,然后把清除的规则保存一下。

iptables -nvL

iptables -F;service iptables save

-nvL选项表示查看规则,-F选项表示清除当前规则,但清除只是临时的,启动系统或者重启iptables服务后还会加载已经保存的规则,所以需要使用service iptables save保存一下规则。通过上面的命令输出,可以看到,防火墙的规则保存在/etc/sysconfig/iptables中。

 

开放Linux的对外访问的端口8080

iptables -I INPUT -p tcp --dport 8080 -j ACCEPT

iptables -I OUTPUT -p tcp --dport 8080 -j ACCEPT

service iptables save

 

firewall开放端口

 firewall-cmd --zone=public --add-port=80/tcp--permanent

查看firewalld端口状态

netstat -tunlp

centos查看端口占用情况

netstat -anltup | grep 80

查找路径

find / -name svn

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 13
    评论
评论 13
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值