Skip to content

Commit f3e019b

Browse files
authored
Update README.md
1 parent abaa466 commit f3e019b

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

README.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,45 +4,48 @@
44

55
具体详情还可以移步 http://www.ntytcp.com
66

7-
# netmap install
8-
7+
## netmap install
8+
```
99
$ git clone https://github.com/wangbojing/netmap.git
1010
1111
$ ./configure
1212
1313
$ make
1414
1515
$ sudo make install
16+
```
17+
## netmap install complete.
1618

17-
# netmap install complete.
19+
#### Troubleshooting
1820

19-
1. problem : configure --> /bin/sh^M.
21+
# 1. problem : configure --> /bin/sh^M.
2022

2123
you should run .
22-
24+
```
2325
$ dos2unix configure
2426

2527
$ dos2unix ./LINUX/configure
26-
27-
2. problem : cannot stat 'bridge': No such or directory
28-
28+
```
29+
# 2. problem : cannot stat 'bridge': No such or directory
30+
```
2931
$ make clean
3032

3133
$ cd build-apps/bridge
3234

3335
$ gcc -O2 -pipe -Werror -Wall -Wunused-function -I ../../sys -I ../../apps/include -Wextra ../../apps/bridge/bridge.c -lpthread -lrt -o bridge
3436

3537
$ sudo make && make install
36-
38+
```
3739

3840
# NtyTcp
3941
netmap, dpdp, pf_ring, Tcp Stack for Userspace
4042

4143
compile:
42-
44+
```
4345
$ sudo apt-get install libhugetlbfs-dev
4446
4547
$ make
48+
```
4649

4750
update NtyTcp/include/nty_config.h
4851

@@ -53,13 +56,13 @@ update NtyTcp/include/nty_config.h
5356
#define NTY_SELF_MAC "00:0c:29:58:6f:f4" //your mac
5457

5558
block server run:
56-
59+
```
5760
$ ./bin/nty_example_block_server
58-
61+
```
5962
epoll server run:
60-
63+
```
6164
$ ./bin/nty_example_epoll_rb_server
62-
65+
```
6366

6467

6568

0 commit comments

Comments
 (0)