首页 Linux基本命令 软件 常用网址 Windows命令 欧式期权定价模型 CRYPTO 波动率

FTP服务器

编辑FTP服务器的配置文件:vim /etc/vsftpd/vsftpd.conf

重新启动服务器:systemctl restart vsftpd.service

查看selinux的策略:getsebool -a | grep ftp

修改规则:setsebool -P tftp_home_dir=1


防火墙

查看防火墙状态:firewall-cmd --state

永久开放50000端口:firewall-cmd --zone=public --add-port=50000/tcp --permanent

永久关闭50000端口:firewall-cmd --zone=public --remove-port=50000/tcp --permanent

关闭防火墙:systemctl stop firewalld

打开防火墙:systemctl start firewalld

重新加载防火墙:firewall-cmd --reload

设置开机启动防火墙:systemctl enable firewalld

禁止开机启动防火墙:systemctl disable firewalld

查看端口开放情况:netstat -tuln

查看所有开放端口:firewall-cmd --list-all

查看所有开放端口:firewall-cmd --zone=public --list-ports

查看端口21是否开放:netstat -tuln | grep :21


Apache阿帕奇Web服务器

打开服务器:systemctl start httpd

关闭服务器:systemctl stop httpd

重启服务器:systemctl restart httpd


Linux命令

修改文件或目录的权限:chmod u=rwx,g=rx,o=rx -R /abc