4KM

 ip addr add 10.9.8.100/24 broadcast + dev eth0

 /etc/sysconfig/network-scripts/ifcfg-eth0

 ifdown eth0 / ifup eth0

 

ftp session on /home/user/

 FileWatcher

 

  /etc/sysconfig/network
  nm-connection-editor
 service kdump status
 service kdump stop
 chkconfig --level 345 kdump off
  chkconfig --list kdump
 useradd -c user user
  passwd user
  tar zxvf centos6-i386-initial-setup-1.8.0.tgz
  cd centos6-i386-initial-setup-1.8.0
  ./install.sh
  
 /usr/share/wireshark/init.lua
  
 tar zxvf install-kernel-centos6-20131231.tgz
 
 /etc/modprobe.d/blacklist.conf
 lsusb.py
  
 vi .bash_profile
 
 nps/ue/license/
 
 mv * /nps/ue/license/
 /nps/ue/license/
 
  rm -f register-info.bin
 ./get-register-info
  ./check-license license.bin
  rm -f license.bin
 
 chmod 755 ~/generate-license-private
  ~/generate-license-private register-info.bin
 
  ./check-license license.bin
 
 
  ls conf/
 
  ./uemshuawei-1505-1.2.0 -v
 
 
  mv lib/udev/rules.d/40-uems.rules /lib/udev/rules.d/
 
 
  /etc/rc.d/rc.local
 /nps/ue/bin/uems.sh
 
  mv lib/modules/2.6.32-220.el6.nps131231.i686/extra/uedevinfomod.ko /lib/modules/2.6.32-220.el6.nps131231.i686/extra/
 mv lib/modules/2.6.32-220.el6.nps131231.i686/kernel/drivers/net/usb/hw_cdc_driver.ko /lib/modules/2.6.32-220.el6.nps131231.i686/kernel/drivers/net/usb/
 depmod -a
 chkconfig --list mysqld
 chkconfig --level 345 mysqld on
 vi /etc/my.cnf
97 service mysqld start
98 mysqladmin -u root password 'root'
99 mysqladmin -h 127.0.0.1 -u root password 'root'
100 mysql -u root -p
101 chmod 777 /nps/ue/cases
102 useradd -c caseftp -d /nps/ue/cases -s /sbin/nologin -M caseftp
103 passwd caseftp
104 vi /etc/vsftpd/vsftpd.conf
105 vi /etc/vsftpd/chroot_list
106 service vsftpd restart
107 mv etc/rc.d/init.d/ipmedia /etc/rc.d/init.d/
108 chkconfig --add ipmedia
109 mv etc/rc.d/init.d/uemgtsrvd /etc/rc.d/init.d/
110 chkconfig --add uemgtsrvd
 
 
 
 
  /home/user/curl-7.30.0
 
 ./iperf-2.0.5
 
 /nload-0.7.4
 
 service uemgtsrvd start
 service uemgtsrvd status
  tail -f uemgtsrvd_20140803_121618_1_\[2216\].log
 
 tail -f /var/log/messages
 
  cat /proc/uedevinfo
 
  route 
 cd /nps/ue/log/

 

 

 无底洞:/dev/null 

 查看CPU : WMIC  ; cpu get *

 

 

 

win只能ping 13312byt的包了。

 ftp 是基于tcp 的,没有udp

difference between passive /active 

active is good for server management,however, probably blocked by firewall on client.

passive is good for client management, but not for server port managemet, also relatively to firewall on server.

 IBM linux redbooks

 

 

开启ftp

#chkconfig vsftpd on //开机自启动vsftpd服务
#/etc/init.d/vsftpd start //开启vsftpd服务
#vi /etc/vsftpd/vsftpd.conf //编辑vsftp配置文件
找到下面这个并禁用:
anonymous_enable=NO //禁用匿名用户登陆
再添加一行:
local_enable=YES //开启本地用户登陆

建立用户:
#adduser -d /var/ftp/test -g ftp -s /sbin/nologin test
#passwd test

iptables防火墙设置:
#system-config-securitylevel
在定制里面把ftp选择上。
#/etc/init.d/iptables restart //重启一下iptables

修改iptables之后,就可以访问ftp了,但用户不能登陆,原因就是selinux需要关闭。
#vi /etc/sysconfig/selinux
找到:
SELINUX=enforcing
修改为:
SELINUX=disabled

#reboot //重启电脑

//如果登陆之后不能写入,请把目录权限再修改一下:
#chown test /var/test

 

你可能感兴趣的:(4KM)