目的更方便操作,远程登录主机tcp/ip通信目前NAT分享物理机网络(特殊校园网)dhclient动态自动获取IPipadd查看网卡IP设置静态IP[root@localhost~]#ipaddvi/etc/sysconfig/network-scripts/ifcfg-ens33iinsert编辑模式TYPE=EthernetBOOTPROTO=dhcpstaticDEFROUTE=yesPEERDNS=ye..
分类:
系统相关 时间:
2017-05-28 16:10:10
阅读次数:
434
如何修改linux主机名才能生效?很多人使用hostname主机名来修改,其实这个只是做为暂时的,重启后将恢复到原来的名字.很多人说修改/etc/hosts文件,其实这个文件里的主机名只是为来提供给dns解析的.如果你用不上dns,只需要修改主机名,那修改这个没用.其实是修改这个文件etc/sysconf..
分类:
系统相关 时间:
2017-05-28 16:05:24
阅读次数:
507
1:nat模式和桥接模式的区别桥接:虚拟机和主机一个网段,好处:设置简单,可以访问局域网其他计算机和外网。缺点:占用一个外网ip地址nat:使用的是vmnet8网卡,能和主机外网通信,不能和局域网其他的主机通信。2:网卡配置文件目录vi/etc/sysconfig/network-scripts/ifcfg-eth..
分类:
其他好文 时间:
2017-05-28 16:05:18
阅读次数:
196
第一步 : 修改配置文件sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf 找到bind-address = 127.0.0.1 注释掉这行,如:#bind-address = 127.0.0.1 或者改为: bind-address = 0.0.0.0 允许任意I ...
分类:
数据库 时间:
2017-05-28 11:52:53
阅读次数:
257
redis-server /root/fast/redisFast/etc/redis.conf => 启动redis服务; ./redis-trib.rb create --replicas 1 192.168.16.102:6379 192.168.16.105:6379 192.168.16. ...
分类:
其他好文 时间:
2017-05-28 11:52:07
阅读次数:
220
火星藏宝图 Description Input Output Sample Input 4 10 1 1 20 10 10 10 3 5 60 5 3 30 Sample Output -4 HINT 1<= M <=2000, 2<= N <=100000. 1<= M <=2000, 2<= N ...
分类:
Web程序 时间:
2017-05-28 11:48:29
阅读次数:
222
A zero-indexed array A consisting of N different integers is given. The array contains all integers in the range [0, N - 1]. Sets S[K] for 0 <= K < N ...
分类:
其他好文 时间:
2017-05-28 11:47:22
阅读次数:
226
1、安装JAVA (1)首先添加源: sudo gedit /etc/apt/sources.list 在打开的文件中添加如下内容并保存: deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial maindeb-src http://p ...
分类:
编程语言 时间:
2017-05-28 11:46:46
阅读次数:
811
Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list of favorite restaurants represented by strings.You need to he ...
分类:
其他好文 时间:
2017-05-28 11:44:36
阅读次数:
246
1 #将mysql启动脚本放入所有脚本运行目录/etc/rc.d/init.d中 2 cp /lamp/mysql-5.0.41/support-files/mysql.server /etc/rc.d/init.d/mysqld 3 4 #改变权限 5 chown root.root /etc/r ...
分类:
数据库 时间:
2017-05-28 11:43:54
阅读次数:
259