摘要:
开放端口的方法: 方法一:命令行方式 1. 开放端口命令: /sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT 2.查看端口是否开放:/sbin/iptables -L -n 方法二:指定IP与端口 1.firewall-cmd --perma 阅读全文
摘要:
2、检查文件是否允许: file.canExecute(); – return true, file is executable; false is not. file.canWrite(); – return true, file is writable; false is not. file.c 阅读全文
摘要:
scp -r 文件名/目录名 root@192.168.2.144:/home/hsw -r 发送目录使用,表示把该目录下的所有子目录以及文件发送过去 scp -r 文件名/目录名 root@192.168.2.144:/home/hsw -r 发送目录使用,表示把该目录下的所有子目录以及文件发送过 阅读全文