1.设置Linux内核支持ip数据包的转发 echo "1" > /proc/sys/net/ipv4/ip_forward or vi /etc/sysctl.conf net.ipv4.ip_forward=1 2.配置双IP auto loiface lo inet loopback auto eth0iface eth0 inet staticaddress 192.168.6.xxnetmask 255.255.255.0gateway 192.168.6.1dns
1. ubuntu 下如何查询子集的mysql版本: 方法一: 登录子集的mysql之后就会显示mysql版本: ***:~$ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id Server version: (Ubuntu) #这就是版本号 Copyright (c) , , Oracle and/or its af
ubuntu安装好了后首先要会下载和管理系统的软件包:ubuntu的软件管理方式是apt-get 安装软件包apt-get harvey@ubuntu:/var/cache/apt$ which apt-get /usr/bin/apt-get #查找apt-get的位置发现这个程序是/usr/bin/apt-get发现这个程序是系统安装的时候,内置到系统的程序,是系统自带的 harvey@ubuntu:/var/cache/apt$ more /etc/apt/sources.list # d