Linux 命令
wellsmith
这个作者很懒,什么都没留下…
展开
-
cassandra
cqlsh 10.1xx.1xx.11 9041desc keyspaces;"drop keyspace key_space_1;"describe tables;Keyspace config_db_uuid-----------------------obj_shared_table obj_uuid_table obj_fq_name_tableselect *...原创 2019-11-21 19:43:54 · 216 阅读 · 0 评论 -
tungsten fabirc vgw报文流向分析:1.浮动ip 2.非浮动ip
环境: ctrl---cmp1---cmp2vhost(10.x; eth2(public):20.x)创建vgw:docker exec -it vrouter_vrouter-agent_1 python /opt/contrail/utils/provision_vgw_interface.py --oper create --interface vgw1 --subnet...原创 2019-07-16 10:09:05 · 471 阅读 · 0 评论 -
Ubuntu install node.js and npm
sudo apt-get install python-software-propertiescurl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -sudo apt-get install nodejsnode -v因为国内的网络环境,直接从npm官方源安装软件包速度会比较慢,甚至导致安装不成功。我们可以安装nrm...原创 2019-06-30 23:00:25 · 407 阅读 · 0 评论 -
ubuntu18 设置静态IP
vim /etc/netplan/50-cloud-init.yamlnetwork: ethernets: enp0s3: dhcp4: no addresses: [192.168.0.112/24] gateway4: 192.168.0.1 nameservers:...原创 2019-06-30 20:52:39 · 337 阅读 · 0 评论 -
angular 配置前后端及安装mongodb备忘-Ubuntu 18
1.Install Ubuntu16:20.122 ubuntu/test1232.install softwaresudo apt-get install python-software-propertiescurl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -sudo apt-get install nodejs...原创 2019-07-14 19:45:48 · 142 阅读 · 0 评论 -
Haproxy配置
[root@liuxiaowei-ctrl ~]# cat /etc/haproxy/haproxy.cfg#---------------------------------------------------------------------# Example configuration for a possible web application. See the# full c...原创 2019-07-10 13:47:11 · 103 阅读 · 0 评论 -
Ubuntu18配置网卡
Ubuntu 18:cat /etc/netplan/01-network-manager-all.yaml# Let NetworkManager manage all devices on this systemnetwork: version: 2# renderer: NetworkManager ethernets: wlp3s0: addres...原创 2019-07-14 12:01:49 · 1389 阅读 · 0 评论 -
Centos修改网卡名字
1.修改grub配置文件,禁用网络设备命名规则:在GRUD_CMDLINE_LINUX中添加net.ifnames=0 biosdevname=0,如下:vi /etc/default/grubGRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0 crashkernel=auto rd.lvm.lv=cl/root rd.lvm.lv=cent...原创 2019-07-14 10:39:26 · 505 阅读 · 0 评论 -
windows安装cygwin
1.下载:http://www.cygwin.com/2.安装过程中在use urls:添加http://mirrors.aliyun.com/cygwin/后继续点击下一步3.选择包:以C/C++为例,选择binutilsgccgcc-mingwgdb###############或automake,binutilsgcc-coregccg++...原创 2019-07-04 09:30:22 · 357 阅读 · 0 评论 -
ansible
[kubernetes:children]masterminion#master组 [master]100.100.111.108 ansible_ssh_pass='ASx@7NCL' ansible_port=22 kuberole=[minion,master]#minion组 [minion]100.100.111.108 ansible_ssh_pass='ASx@...原创 2019-07-02 18:39:29 · 163 阅读 · 0 评论 -
Centos 安装桌面系统及虚拟化设置
1.首先minimal安装2.切换阿里云mv CentOS-Base.repo CentOS-Base.repo.backupwget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repowget https://mirrors.aliyun.com/repo/epel-7...原创 2019-06-26 00:44:47 · 916 阅读 · 0 评论 -
双系统windows+linux
1.先装了windows2.后拿一个磁盘装linux2.1装完centos linux后,在grub2启动选项中没有看到win启动菜单,原因是centos没有识别ntfs分区:解决如下:a. 添加EPEL源(ntfs-3g在该源中):$ yum search epel# yum installepel-releaseb. 安装ntfs-3g用于识别ntfs分区:# yum...原创 2019-06-19 21:39:38 · 375 阅读 · 0 评论 -
Linux Commad
1.iptable for vnc:iptables -I INPUT -p tcp --dport 5902 -j ACCEPT# route add -net 10.20.30.40 netmask 255.255.255.248 eth0 #添加10.20.30.40的网络# route add -net 10.20.30.48 netmask 255.255.255.248...原创 2019-05-30 09:39:57 · 150 阅读 · 0 评论