linux
文章平均质量分 76
linwha1990
这个作者很懒,什么都没留下…
展开
-
centos7 解决ftp和apache运行目录权限冲突问题
1.将ftp用户加入到apache用户组 usermod -a -G apache ftp ftpadmin 为ftp用户2.设置网站根目录/var/www的所有组为apache chown -R :apache /var/www3、设置网站根目录的权限为用户组有读写权限 chmod -R g+rw /var/www如果修改后还是不行vim ...原创 2019-10-30 17:24:43 · 417 阅读 · 0 评论 -
php-fpm重启
php-fpm 关闭:kill -INT 'cat /usr/local/php/var/run/php-fpm.pid'php-fpm 重启:kill -USR2 'cat /usr/local/php/var/run/php-fpm.pid'原创 2018-04-14 13:06:46 · 148 阅读 · 0 评论 -
firewall
1、firewalld的基本使用启动: systemctl start firewalld查看状态: systemctl status firewalld 停止: systemctl disable firewalld禁用: systemctl stop firewalld 2.systemctl是CentOS7的服务管理工具中主要的工具,它融合之前service和chkconfig的功能于一体。...转载 2018-04-14 18:18:41 · 125 阅读 · 0 评论 -
ssh建立主机和子机的信任机制
cd /root/.ssh[root@localhost .ssh]# ssh-keygen -t rsa #创建 Generating public/private rsa key pair.Enter file in which to save the key (/root/.ssh/id_rsa): id_rsa #文件名称Enter passphrase (empty for n...原创 2018-04-15 12:39:17 · 194 阅读 · 0 评论 -
centOS7中配置ftp
一、安装并启动FTP服务1.查询是否系统已经自带了vsftpd :rpm -q vsftpd2.使用 yum 安装vsftpd:yum -y install vsftpd (或者使用rpm安装vsftpd:rpm -ivh vsftpd-3.0.2-22.el7.x86_64)3.启动vsftpd服务:service vsftpd start (设置开机启动:systemctl en...转载 2018-07-18 18:04:21 · 1301 阅读 · 0 评论 -
CentOS7 Firewall常用命令汇总
1、firewalld的基本使用启动: systemctl start firewalld查看状态: systemctl status firewalld 停止: systemctl disable firewalld禁用: systemctl stop firewalld 2.systemctl是CentOS7的服务管理工具中主要的工具,它融合之前service和chkc...转载 2018-07-18 18:20:07 · 1722 阅读 · 0 评论 -
linux ftp登陆 503 login incorrect解决办法
想到可能是pam模块的问题,于是看了下/etc/vsftpd/vsftpd.conf文件中的相关配置,是启用pam的[root@localhost pam.d]# vim /etc/vsftpd/vsftpd.conf查看/etc/pam.d下的vsftpd文件[root@localhost pam.d]# cd /etc/pam.d然后查看vsftpd内容(如果内容不一样...原创 2019-09-19 14:49:27 · 4664 阅读 · 0 评论 -
apache禁用PUT、DELETE、TRACE等危险方法
在httpd.conf中增加,只允许GET、POST、OPTIONS方法<Location "/"> AllowMethods GET POST OPTIONS </Location>重启apachesystemctl restart httpd.service原创 2019-09-30 14:34:07 · 5258 阅读 · 1 评论