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