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

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  

 

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

 

 

 

 

 

 

 

-----------

转载于:https://www.cnblogs.com/vip-deng-vip/p/8576893.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值