个人笔记上传 -- linux简单命令

改变用户组

chown root:root install.log

查看磁盘空间,总数:du -sh ps:显示8.1G并附子文件夹详细,【df】查看比较详细,简便

 

算法:
深度卷积神经网络


查看iptables设置

iptables -nvL --line-number

PS:redis外网访问,并绑定访问IP,通过配置iptables实现

如果iptables 没有开启6379端口,用这个方法开启端口
命令:
# /sbin/iptables -I INPUT -p tcp --dport 6379 -j ACCEPT

保存防火墙修改命令:/etc/rc.d/init.d/iptables save

**只允许127.0.0.1访问6379
# iptables -A INPUT -s 127.0.0.1 -p tcp --dport 6379 -j ACCEPT

**其他ip访问全部拒绝
# iptables -A INPUT -p TCP --dport 6379 -j REJECT

 

** 清空iptables **
# iptables -F

posted @ 2018-05-07 10:39  李星保  阅读(135)  评论(0编辑  收藏  举报