05 2024 档案
摘要:#/bin/bash # 设置时区并同步时间 ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime if ! crontab -l |grep ntpdate &>/dev/null ; then (echo "* 1 * * * ntpdat
阅读全文
摘要:目录安装认证所需包安装vsftp设置vsftpd开机启动配置vsftpd.conf配置虚拟用户(虚拟用户权限根据以下内容控制)在/etc/vsftpd/目录新建一个虚拟用户文档生成虚拟用户认证的db文件编辑认证文件/etc/pam.d/vsftpd,全部注释掉原来语句,添加以下两句设置服务器上的目录
阅读全文
摘要:关闭防火墙 Centos6 /etc/init.d/iptables stop Centos7 systemctl stop firewalld.service 永久关闭防火墙 Centos6 chkconfig iptables off Centos7 systemctl disable fire
阅读全文