快速上手Linux 玩转典型应用_慕课网笔记

2023-04-23,,

1.没有exe安装程序  2.区分大小写  3.一切皆文件  4.文件后缀不是那么重要,只是为了好识别

--------------------------------------------------

3-1:安装虚拟机

【VirtualBox 5.1】【vmware】

VirtualBox (5.1.24):下载地址

https://www.virtualbox.org/wiki/Download_Old_Builds_5_1

Xshell 下载:
http://dlsw.baidu.com/sw-search-sp/soft/7b/15201/Xshell_5.0.0.37_setup.1459931786.exe

--------------------------------------------------

3-3:云服务器介绍

阿里云:https://www.aliyun.com/

腾讯云:https://cloud.tencent.com/?fromSource=gwzcw.330897.330897.330897

网易蜂巢:https://www.163yun.com/?h=fc

------------------------------------------------------------

4-1:课前准备工作:

root 123456

查看ip

  |-  ifconfig  ip配置

  |-  ip addr  ip地址

  |-  vi /etc/sysconfig/network-scripts/ifcfg-xx  vi编辑软件

  |-  yum install net-tools    网络工具

-------------------------------------------------------------

cd 进入

查看服务器配置:cat /etc/redhat-release  centOS7.3.1611

-------------------------------------------------------------

CentOS7,镜像版下载:

http://mirrors.163.com/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1708.iso

-----------------------------------------------------------------------------------

ifconfig ,是否可以执行,不可以的话:

vi /etc/sysconfig/network-scripts/ifcfg-xx ues  y  y

退出:wq ecs w写入,q

替换默认源:

http://mirrors.163.com/.help/centos.html

安装VIM

=======================【服务器安装:SSH服务】=============================

安装SSH

yum install openssh-server

启动SSH

service sshd start

设置开机运行

chkconfig sshd on

----------------------------------------

常用命令:

软件包管理器:yum

安装软件:yum install xxx

卸载软件:yum search xxx

清理缓存:yum clean packages

列出已安装:yum list

软件包信息:yum info xxx

eg:  yum search vim    yum search php

------------------------------------------

服务器硬件资源信息:

内存:free -m    (G)

硬盘:fd -h

负载:w/top

cpu:cat /proc/cpuinfo

fdisk  disk(格式化-磁盘)

----------------------------------

文件操作命令:

Linux文件的目录结构

:根目录  /      配置目录:  /etc

家目录  /home    用户程序目录  /usr

临时目录  /tmp

[  

  1. cd /  2.  ls -al  ==ll

]

文件基本操作

cd ~  【进入家目录】

mkdir -p imooc_dir/test1/test2      ls    

cd imooc_dir  ll

---------  ls -al

创建文件:  touch imooc.log  ls

循环删除  rm imooc_dir      r m      -r    imooc_dir/

强制删除:  rm  -rf  imooc_dir  ls

复制:  cp  ./imooc.log  ~/imooc.log2

移动:  mv  ./imooc.log   ~/

---------------------------------------------------------------------------------------------

文本编辑器[神器]  vim

yum install vim

http://www.runoob.com/linux/linux-yum.html

--------------------------------------------------------------------------

文件权限:777  421  

-------------------------------------------------------------------------------------

-----------

快速上手Linux 玩转典型应用_慕课网笔记的相关教程结束。

《快速上手Linux 玩转典型应用_慕课网笔记.doc》

下载本文的Word格式文档,以方便收藏与打印。