Linux软件安转目录

转载自:https://blog.csdn.net/aqxin/article/details/48324377   Linux 的软件安装目录是也是有讲究的,理解这一点,在对系统管理是有益的 /usr:系统级的目录,可以理解为C:/Windows/,/usr/lib理解为C:/Windows/System32。 /usr/local:用户级的程序目录,可以理解为C:/Progrem Files/。用户自己编译的软件默认会安装到这个目录下。 /opt:用户级的程序目录,可以理解为D:/Software,opt有可选的意思,这里可以用于放置第三方大型软件(或游戏),当你不需要时,直接rm -rf掉即可。在硬盘容量不够时,也可将/opt单独挂载到其他磁盘上使用。 源码放哪里? /usr/src:系统级的源码目录。 /usr/local/src:用户级的源码目录。 —————–翻译——————- /opt Here’s where optional stuff is put. Trying out the latest Firefox beta? Install it to /opt where you can delete it without affecting other settings. Programs in here usually live inside a single folder whick contains all of their data, libraries, etc. […]

Nat的四种模式

Nat的四种模式 Full cone NAT, 完全圆锥型NAT Address-Restricted cone NAT, 受限圆锥型NAT Port-Restricted cone NAT, 端口受限圆锥型NAT Symmetric NAT, 对称NAT Full cone NAT        一个内部地址(iAddr: port1)映射到外部地址(eddr: port2),所有发自iAddr: port1的包都经由eAddr: port2向外发送。任意外部主机也能通过eAddr: port2发包到iAddr: port1。 Address-Restricted cone NAT        一个内部地址(iAddr: port1)映射到外部地址(eddr: port2),所有发自iAddr: port1的包都经由eAddr: port2向外发送。而只有iAddr: port1之前发送过包的外部主机的任意端口能通过eAddr: port2发包到iAddr: port1。 Port-Restricted cone NAT        一个内部地址(iAddr: port1)映射到外部地址(eddr: port2),所有发自iAddr: port1的包都经由eAddr: port2向外发送。而只有iAddr: port1之前发送过包的外部主机的特定端口能通过eAddr: […]