免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: keddywxn
打印 上一主题 下一主题

如何把xp和linux的ip设置成像通过hub连接的两台机器一样 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2006-04-26 19:59 |只看该作者
好像这个问题很严重!我的整个linux的ip都设置不了了。

论坛徽章:
0
12 [报告]
发表于 2006-04-26 20:07 |只看该作者
vm的网络用bridged

论坛徽章:
0
13 [报告]
发表于 2006-04-26 23:02 |只看该作者
vmware 里设成桥式。
vmware 的网卡是pcnet32,vm的硬件和宿主机器是无关的。
把/etc/modules.conf 文件里的

alias eth0 8139too
改为
alias eth0 pcnet32
然后用netconfig 命令配置网卡,重启(最简单的方法)后,主机和虚拟机就能通了。
对了,你也许要插上网线,是否必须取决于vmware 的版本。

[ 本帖最后由 maluyao 于 2006-4-26 23:05 编辑 ]

论坛徽章:
0
14 [报告]
发表于 2006-04-27 20:18 |只看该作者
谢谢楼上的朋友,我照你说的做了,并且分别关闭了两者的防火墙,已经能在xp下用winscp连接linux了。
只是还有一个问题,就是我最终想实现用linux做网站的服务器,配置是apache+mysql+php。现在apache装上了,但是在装mysql的时候,我用的命令是:
./configure --prefix=/usr/local/mysql --sysconfdir=/etc --localstatedir=/var/lib/mysql

报出的信息是(很长):

NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!

To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you.  If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.

WARNING: The host 'wxn' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL deamon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing all prepared tables
060427 19:58:26  ./bin/mysqld: Shutdown Complete


To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
This is done with:
./bin/mysqladmin -u root  password 'new-password'
./bin/mysqladmin -u root -h wxn  password 'new-password'
See the manual for more instructions.

NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
the ./bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!

You can start the MySQL daemon with:
cd . ; ./bin/safe_mysqld &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; run-all-tests

Please report any problems with the ./bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com

Starting the mysqld server.  You can test that it is up and running
with the command:
./bin/mysqladmin version
[root@wxn mysql-3.23.58-pc-linux-i686]# Starting mysqld daemon with databases from /home/wxn/mysql-3.23.58-pc-linux-i686/data
./bin/safe_mysqld: line 284:  2479 段错误                  $NOHUP_NICENESS $ledir/$MYSQLD $defaults --basedir=$MY_BASEDIR_VERSION --datadir=$DATADIR $USER_OPTION --pid-file=$pid_file --skip-locking >>$err_log 2>&1
060427 19:58:27  mysqld ended

我装的是mysql-3.23.58-pc-linux-i686,请问这是怎么回事?应该怎样装mysql?

论坛徽章:
0
15 [报告]
发表于 2006-04-27 20:47 |只看该作者
你那个已经是编译好的mysql了

论坛徽章:
0
16 [报告]
发表于 2006-04-28 09:51 |只看该作者
哦,是这样的
我自己想练习一下mysql的安装,包括各种详细的配置,所以我想自己亲自编译,安装。我看的mysql的安装教程无非都是这几步:
tar zxvf mysql-3.23.58.tar.gz
cd mysql-3.23.58

./configure --prefix=/usr/local/mysql --sysconfdir=/etc --localstatedir=/var/lib/mysql

make
make install
然后是其他的配置步骤。但我试过好几个mysql的版本,执行./configure这行命令的时候都是抱上面我写的信息。
那我应该怎样才能按照上面的mysql安装教程上的步骤来配置mysql呢?是不是要换个mysql的版本?
如果mysql都是楼上的朋友说的都是编译好的话,那我怎样知道他的详细配置,怎样把他和apache、php配置好呢?谢谢!

论坛徽章:
0
17 [报告]
发表于 2006-04-28 11:45 |只看该作者
顶一下!

论坛徽章:
0
18 [报告]
发表于 2006-04-28 19:50 |只看该作者
希望能有人能够指点一下!先谢了!

论坛徽章:
20
CU大牛徽章
日期:2013-04-17 11:48:26羊年新春福章
日期:2015-03-10 22:39:202015年中国系统架构师大会
日期:2015-06-29 16:11:282015亚冠之平阳省
日期:2015-07-31 09:19:042015七夕节徽章
日期:2015-08-21 11:06:17IT运维版块每日发帖之星
日期:2015-09-30 06:20:002015亚冠之柏太阳神
日期:2015-10-19 20:29:5915-16赛季CBA联赛之天津
日期:2016-11-29 14:03:4315-16赛季CBA联赛之北控
日期:2016-12-24 20:51:492015年辞旧岁徽章
日期:2015-03-03 16:54:15双鱼座
日期:2015-01-12 20:58:532014年中国系统架构师大会
日期:2014-10-14 15:59:00
19 [报告]
发表于 2006-04-29 07:32 |只看该作者
原帖由 keddywxn 于 2006-4-26 17:01 发表
我想我的问题是出现在这里了,当我启动linux的时候,会检测到下面的错误:
Bringing up interface eth0:8139too device eth0 does not  seem to be present laying initialization      [failed]
是不是由于这个 ...

     老兄你的虚拟机中要不要装驱动程序?我的虚拟机中的linux是用光盘安装的,每次启动的时候都会出现你那样的问题,而且网卡怎么也不会激活,这是怎么回事???????????????

论坛徽章:
0
20 [报告]
发表于 2006-04-29 10:42 |只看该作者
请楼上的朋友仔细看第13楼的帖子,就可以解决你的问题了。

我要问的问题在第16楼,至今还没有解决

[ 本帖最后由 keddywxn 于 2006-4-29 10:44 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP