-linux一些命令-- 持续更新
1. Linux 开启服务端口
python -m SimpleHTTPServer PORT
2.docker-compose更换下载地址
curl -L https://get.daocloud.io/docker/compose/releases/download/1.25.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
3.网卡知识
VMware克隆的虚拟机mac地址会自动改变,可以直接上网。网卡的uuid不会变,他是系统内唯一,不影响克隆虚拟机的正常上网,但是复制网卡需要改变。
- 查看uuid
nmcli con show
- 查看网卡
nmcli dev show
- 生产网卡
uuidgen eth1
- 网卡设备地址 配置地址
/etc/udev/rules.d/xx-persistent-net.rules
4.关闭防火墙 frirewall 永久关闭和selinux 立即生效
systemctl stop firewalld && systemctl disable firewalld && sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config && setenforce 0
5. node
- node地址
https://npm.taobao.org/mirrors/node
- node-sass地址
npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
- npm设置为淘宝
npm config set registry https://registry.npm.taobao.org
- 查看镜像源
npm config get registry