Skip to content

Commit

Permalink
update linux_tutorial1
Browse files Browse the repository at this point in the history
  • Loading branch information
FLyingLSJ committed Jan 5, 2019
1 parent 5985d56 commit ec3e1f5
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 3 deletions.
40 changes: 37 additions & 3 deletions _posts/2018-1-5-Linux_tutorial1.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,45 @@ tag: Linux

1. Linux 与 Unix 的关系

![1546669280413](img/img180105/1546669280413.png)
![](http://ww1.sinaimg.cn/large/acbcfa39ly1fyvw41gs1wj20r00epqa0.jpg)

![1546669436595](img/img180105/1546669436595.png)


![2](http://ww1.sinaimg.cn/large/acbcfa39ly1fyvw41iiskj20nl0fb10z.jpg)

2. 安装 VM 与 CentOS

[安装包](https://pan.baidu.com/s/1PKB2vTrtkmGgToNB7dzjZw) 提取码:`dlhv`
[安装包及安装教程](https://pan.baidu.com/s/1PKB2vTrtkmGgToNB7dzjZw) 提取码:`dlhv`

这部分有个问题要说一下。在虚拟机网络设置时,有几种模式可以选择,分别是

`桥接模式`:相当于把虚拟机当作一台本地电脑使用,它会占据本地网络的一个 IP

`NAT 模式`:我们设置时使用的是这个,可以避免 IP 冲突,可以访问外网

`仅主机模式`:不会造成 IP 冲突,但是不能访问外网

![](http://ww1.sinaimg.cn/large/acbcfa39ly1fyvx37ga1uj20jo089q3p.jpg)

3. 安装 vmtools

vmtools 安装后,可以让我们在windows下更好的管理vm虚拟机

- 可以直接粘贴命令在windows 和 centos系统之间
- 进入centos
- 点击vm菜单的->install vmware tools
- centos会出现一个vm的安装包
- 点击右键解压, 得到一个安装文件
- 进入该vm解压的目录 ,该文件在 /root/桌面/vmware-tools-distrib/下
- 安装 ./vmware-install.pl
- 全部使用默认设置即可
- 需要reboot重新启动即可生效
- 可以设置windows和centos的共享文件夹
- 在物理机新建一个文件夹
- 虚拟机-设置

![](http://ww1.sinaimg.cn/large/acbcfa39gy1fyvxcx5i8zj20qj0a4gmt.jpg)



参考资料:尚硅谷 Linux 课程
2 changes: 2 additions & 0 deletions _posts/debug.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[0105/183757.538:ERROR:crash_report_database_win.cc(428)] unexpected header
[0105/185625.216:ERROR:crash_report_database_win.cc(428)] unexpected header
Binary file removed _posts/img/img180105/1546669280413.png
Binary file not shown.
Binary file removed _posts/img/img180105/1546669436595.png
Binary file not shown.
Binary file added images/posts/20180105img/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/posts/20180105img/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/posts/20180105img/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/posts/20180105img/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ec3e1f5

Please sign in to comment.