标签:
静态IP配置 DEVICE=eth0 IPADDR=192.168.1.4 NETMASK=255.255.255.0 GATEWAY=192.168.1.1 ONBOOT=yes TYPE=Ethernet BOOTPROTO=none HWADDR=c8:60:00:c9:81:9e IPV6INIT=no USERCTL=no 挂载硬盘: 安装ntfs-3g blkid 查看UUID mkdir -p /media/data /etc/fstab 添加UUID=4E58624658622D41 /media/data ntfs-3g defaults 0 0 apache安装 自启: setup 选择httpd 关闭selinux #SELINUX=enforcing SELINUX=disabled 打开80端口 -A INPUT -p tcp -m multiport --dport 20,21 -m state --state NEW -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 21 -j ACCEPT -A INPUT -p tcp --dport 30000:31000 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT 添加虚拟目录 Alias /data "/media/data" <IfModule mod_negotiation.c> <IfModule mod_include.c> <Directory /media/data> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> 重新启动 service iptables restart service httpd restart proftp安装 ./configure --prefix=/var/proftpd --sysconfdir=/etc --enable-nls make make install groupadd ftpusers useradd -d /media/soft/ -g ftpusers -s /sbin/nologin ftp1 /etc/proftp.conf User ftpeditor Group nobody DefaultRoot ~ /media/soft <Directory ~> <Limit WRITE DELE RMD> AllowUser ftpeditor DenyAll #所有匿名用户在upload目录不能写入、下载、删除、删除目录 </Limit> </Directory> xampp 启动 touch /var/lock/subsys/local service httpd stop /var/proftpd/sbin/proftpd /opt/lampp/lampp start service httpd start /sbin/modprobe ip_conntract /sbin/modprobe ip_conntrack_ftp /sbin/modprobe ip_nat_ftp
标签:
原文地址:http://www.cnblogs.com/nmgxbc/p/4818688.html