CentOS系统配置记录

1. 挂載 ntfs:

确定已经安装了rpmforge软件库的源。在线安装使用 yum install 命令 含有 rpmforge源。

yum install fuse ntfs-3g -y

安装后, 打开 我的电脑  打开对应硬盘 (包含移动硬盘 、U盘):

(1)若是电脑与Linux分区所在盘则提示需要root授权,输入密码即可访问。

(2)若是 移动硬盘、U盘, 则直接可打开。

2.   pipe :

管道:名词表示两个进程的通信通道

动词表示通道机制

表示: cat hard_link_to_list | grep a
cat查看 hard_link_to_list文件 , 利用管道 | 输出到 Terminal , 通过 grep 筛选

表示: cat hard_link_to_list | more
文件大,管道输出到more

3.Permission

[[email protected] photos]$ ls –l
total 2
drwxrwxrwx 2 alex alex 4096 oct 31 11:35 Holidays in France
-rw-rw-r-- 1 alex alex    8 oct 31 09:21 photo2.jpg

File Permision:

First character: File type (-: fle, d: directory, l: link; other types exist)
Second to fourth characters: Read, write, and execute permissions for   the owner
Fifth to seventh characters: Read, write, and execute permissions for   the group
Eighth to tenth characters: Read, write, and execute permissions for   other users

Permissions on a directory differ from regular fle permissions:
The x bit specifes whether or not the folder can be entered (such as using cd)
The r bit allows the directory content to be listed (such as using ls)
The w bit specifes whether or not new fles can be written in the folder   
(and existing fles moved to the folder)

4. Linux  Directory Infro

Path Description
/ The root directory: Not to be confused with /root. No fles are usually  placed at the root, although nothing really prevents you from doing so.
/bin Binaries: Common executable binaries and scripts available for all users of the  system. This is where essential programs such as ls, cp, or mv are found.
/boot Boot: Critical fles used at system boot time.
/dev Devices: Device and special fles, more information in the next section.
/etc Et cetera: System-wide confguration fles for services and applications. You  will often need to browse this directory, for example, when you will need to  edit the Nginx server settings and virtual hosts.
/home Home directories: This directory contains home directories for all users on  the system except the root user. In the examples we studied before we used  
/home/alex, the home directory for the alex user.
/lib Libraries: System-wide shared libraries and kernel modules, required by  binaries found in the /bin and /sbin folders.
/media Removable media: A directory that allows you to easily access removable  media using mount points for devices such as CD-ROMs, USB devices,   and so on.
/mnt Temporarily mounted flesystems: This directory is a suitable placeholder in  case the administrator wishes to mount a flesystem on a temporary basis.
/opt Optional software packages: In theory, this directory should host application  fles and add-on packages that do not come with the default operating system  
installation. In practice, it is hardly ever used.
/proc Kernel and process information virtual flesystem: This directory provides  access to a virtual flesystem containing a variety of statistics and details about  
all running processes.
/root Root user home directory: The root user, also known as Superuser, does not  have its home directory stored in the same folder as regular users (/home).  
Instead, its personal fles are stored in the /root. directory. The slash-root  (/root) directory is not to be confused with the root directory (/).
/sbin System binaries: Utilities dedicated to system administration, thus generally  accessed by the root user only. Programs such as ifconfg, halt, service, and  
many others can be found here.
/srv Service data: A placeholder for data coming from services hosted on the  system. Like many others, this directory is rarely used.
/tmp Temporary fles: Files that do not need to be conserved beyond program  execution should be stored here. Many operating systems actually clear the  
contents of this directory on reboot.

CentOS系统配置记录

时间: 2024-10-05 19:53:27

CentOS系统配置记录的相关文章

redhat 系统和centos系统配置yum 源的几种方法

          红帽或centos系统配置yum源 本地配置yum 源:光驱仓库,ISO仓库(一般适用于红帽linux,(因为它没有配不然怎么收钱)或者没有联网的centos系统, (都是配好的网源,只要可以联网就可以进行yum操作)) 文档带图片链接    http://pan.baidu.com/s/1c2G6Xyg    (https://yunpan.cn/Oc6mzj4mLwgDzC  访问密码 d35c ) 一.虚拟机中有光驱(虚拟机中光盘的位置)挂载的情况: (1)找到光驱的位

CentOS系统配置 iptables防火墙

阿里云CentOS系统配置iptables防火墙 虽说阿里云推出了云盾服务,但是自己再加一层防火墙总归是更安全些,下面是我在阿里云vps上配置防火墙的过程,目前只配置INPUT.OUTPUT和FORWORD都是ACCEPT的规则 一.检查iptables服务状态 首先检查iptables服务的状态 [[email protected] ~]# service iptables status iptables: Firewall is not running. 说明iptables服务是有安装的,

CentOS 系统记录

1. 挂載 ntfs: 确定已经安装了rpmforge软件库的源.在线安装使用 yum install 命令 含有 rpmforge源. yum install fuse ntfs-3g -y 安装后, 打开 我的电脑  打开对应硬盘 (包含移动硬盘 .U盘): (1)若是电脑与Linux分区所在盘则提示需要root授权,输入密码即可访问. (2)若是 移动硬盘.U盘, 则直接可打开. 2.   pipe : 管道:名词表示两个进程的通信通道 动词表示通道机制 表示: cat hard_link

在CentOS上安装Hadoop集群(一)-- Centos系统配置

在CentOS上安装Hadoop集群(一) 1.  Centos的系统配置 1.1打开终端方式: 方式1:在桌面单击右键,>>Open in terminal 方式2:Applications菜单上选择System tools -> Terminal 打开了 1.2配置网络环境 查看ip地址命令:ifconfig 网络安装命令:setup 重启网络服务命令:service network restart 网络连接命令:ifup eth0 如图所示,电脑有个红叉表示网络未连接 ifconf

为centos系统配置转发和iptables使之成为网关

先找一台可以上网的centos主机.假设其连接公网的网口是eth0,与客户机都属于192.168.0.0/16,使用nat方式上网,则进行如下这番配置: vim /etc/sysconfig/iptables *nat :PREROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A POSTROUTING -s 192.168.0.0/16 -o eth0 -j MASQUERADE COMMIT *filte

腾讯云CentOS系统配置apache和tomcat

本文使用yum软件包管理工具基于CentOS7.2版本配置apache和tom. 云服务器选购完毕后,安装Xshell软件,输入用户名密码即可远程登陆登录(centos用户名默认是root). 1,下载安装java(这里使用的是yum软件包管理器,他会自动配置好环境变量) yum –y install java 2,安装tomcat和appache yum –y install tomcat tomcat-admin-webapps tomcat-docs-webapp tomcat-javad

CentOS搭建记录

地址:http://118.89.156.206/ 密钥配置: 第一次用SSH密钥的时候,腾讯下载转化的私钥,不知道咋就不能用 关于SSH密钥的一些东西: http://blog.csdn.net/gsls200808/article/details/49778959 手动搭建过程: http://blog.csdn.net/a445849497/article/details/51436051 随手记一下命令: netstat -lnp|grep 8080  查看指定端口占用 ps -l 查看

centos使用记录: 换源与安装开发工具包

centos换源 http://mirrors.163.com/.help/centos.html mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup Wget http://mirrors.163.com/.help/CentOS6-Base-163.repo Yum clean all Yum makecache Centos 安装dev环境 yum groupinstall "Devel

virtualbox中centos系统配置nat+host only上网(zhuan)

http://www.cnblogs.com/leezhxing/p/4482659.html ********************************************************** 以前一直使用的是virtualbox的桥接模式,桥接模式的特点: 虚拟机和宿主机处于同等地位,就像是一台真实主机一样存在于局域网中,可以分配到一个网络中独立的IP. 虚拟机和宿主机之间能够互访. 如果网络断开,即便虚拟机和宿主机其实是在一台物理机器上,宿主机也不能够访问虚拟机. 配置方