【【Linux学习】基本操作】教程文章相关的互联网学习教程文章

Linux学习-Nginx安装

1.安装 yum install -y nginx 2.启动nginx systemctl start nginx 3.重启nginx systemctl restart nginx 4.设置nginx开机自启动 systemctl enable nginx 5.修改配置文件(修改配置文件后需要重启) vi /etc/nginx/nginx.conf

Linux学习之网络管理的基本命令【代码】【图】

ifconfig命令 ifconfig命令用于配置和显示Linux内核中的网络接口参数。在配置参数时,只是临时配置该参数,在系统或者网卡重启后,会丢失该参数。若需要保存配置,则需要修改/etc/sysconfig/net-scripts/ifcfg-eth#(CentOS6)或/etc/sysconfig/network-scripts/ifcfg-ens#(CentOS7)文件,#为对应的网卡名,实际上文件名与网卡实际名称无关,只是为了易于辨认。 语法: ifconfig [选项] [设备] [参数] 常用选项: add <ipv6> 为网...

linux学习笔记

一.linux与windows的区别: 1.linux严格区别大小写 2.linux中所有内容皆文件,包括硬件 3.linux不靠扩展名区分文件类型 4.Windows下的程序不能直接在linux中直接安装和运行 二.字符界面的优势: 1.占用的系统的资源更少 2.减少出错和攻击 三.分区类型 主分区:最多只能有四个 扩展分区: 最多只能有一个 主分区加扩展分区最多有四个 不能写入数据,只能包括逻辑分区(逻辑分区只能有23个) 格式化:写入文件系统...

Linux 学习 (一)

Linux 学习 (一)最常用的7个Linux命令: cd:切换目录。 pwd:查看当前所在目录。 ls:查看目录下的文件。 touch:没有文件则创建文件。 mkdir:创建目录。 mr:remove删除。 -r可以删除目录 clear:清除屏幕。 文件和目录常用命令 查看目录内容 ls -a:查看隐藏文件 -l:查看详细信息 -h:配合-l使用人性化显示文件大小 ls通配符使用 *:表示任意个数字符 ?:表示任意一个字符 []:表示可以匹配字符...

Linux学习-Jenkins安装

确保本机有java环境,没有先安装java环境yum install -y java 将它jenkins repo 放在yum源里wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.reporpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key 安装jenkisyum install -y jenkins 编辑启动端口号(默认8080),如果需要的话,此处端口号可以自由修改vi /etc/sysconfig/jenkins找到并编辑:JENKINS_PORT="8080" 启动service jen...

Linux学习笔记(6)——打包压缩与搜索命令【代码】

打包压缩与搜索命令 1.tar命令 tar 命令用于对文件进行打包压缩或解压,格式为“tar [选项] [文件]”参数 作用-c 创建压缩文件-x 解开压缩文件-t 查看压缩包内有哪些文件-z 用Gzip压缩或解压-j 用bzip2压缩或解压-v 显示压缩或解压的过程-f 目标文件名-p 保留原始的权限与属性-P 使用绝对路径来压缩-C 指定解压到的目录一般使用“tar -czvf 压缩包名称.tar.gz 要打包的目录”命令把指定的文件进行打包压缩;相应的解压命令为“tar -x...

Linux学习笔记(2)--Linux 基本操作【图】

1.1 Listing files and directories ls (list) When you first login, your current working directory is your home directory. Your home directory has the same name as your user-name, for example, ee91ab, and it is where your personal files and subdirectories are saved. To find out what is in your home directory, type % ls The ls command ( lowercase L and lowercase S ) lists the contents of your current...

Linux学习笔记(3)-- 文档操作

2.1 Copying Files cp (copy) 复制 cp file1 file2 -- is the command which makes a copy of file1 in the current working directory and calls it file2 What we are going to do now, is to take a file stored in an open access area of the file system, and use the cp command to copy it to your unixstuff directory. First, cd to your unixstuff directory. % cd ~/unixstuff Then at the UNIX prompt, type, % cp /v...

Linux学习笔记(4)-- Linux Redirection

3.1 Redirection Most processes initiated by UNIX commands write to the standard output (that is, they write to the terminal screen), and many take their input from the standard input (that is, they read it from the keyboard). There is also the standard error, where processes write their error messages, by default, to the terminal screen. We have already seen one use of the cat command to write t...

Linux学习笔记(5)-- Wildcards

4.1 Wildcards The * wildcard The character * is called a wildcard, and will match against none or more character(s) in a file (or directory) name. For example, in your unixstuff directory, type % ls list* This will list all files in the current directory starting with list.... Try typing % ls *list This will list all files in the current directory ending with ....list The ? wildcard The character ...

Linux学习笔记(6)-- File system【图】

5.1 File system security (access rights) In your unixstuff directory, type % ls -l (l for long listing!) You will see that you now get lots of details about the contents of your directory, similar to the example below.Each file (and directory) has associated access rights, which may be found by typing ls -l. Also, ls -lg gives additional information as to which group owns the file (beng95 in the f...

Linux学习笔记(7)-- Other useful UNIX commands

Other useful UNIX commands quota All students are allocated a certain amount of disk space on the file system for their personal files, usually about 100Mb. If you go over your quota, you are given 7 days to remove excess files. To check your current quota and how much of it you have used, type % quota -v df The df command reports on the space left on the file system. For example, to find out ho...

Linux学习笔记(8)-- Compiling

7.1 Compiling UNIX software packages We have many public domain and commercial software packages installed on our systems, which are available to all users. However, students are allowed to download and install small software packages in their own home directory, software usually only useful to them personally. There are a number of steps needed to install the software.Locate and download the so...

Linux学习笔记(9)-- System Variables

8.1 UNIX Variables Variables are a way of passing information from the shell to programs when you run them. Programs look "in the environment" for particular variables and if they are found will use the values stored. Some are set by the system, others by you, yet others by the shell, or any program that loads another program. Standard UNIX variables are split into two categories, environment vari...

Linux学习django-CentOS部署自己本地的django项目【代码】【图】

前言 自己本地写好的django项目,如何部署到linux服务器上,让其他的小伙伴也能访问呢?本篇以centos系统为例,把本地写好的django项目部署到linux服务器上环境准备: 环境准备:1.一台Linux服务器, 操作系统: CentOS 7.4 64位2.python3.6 (前面已经搭建好)3.django-2.1.4 django环境准备 前面已经安装好了python3.6.8的环境并且pip也配置好了,安装django直接用pip安装就可以了,安装的django版本位django-2.1.4pip install djan...