输入后系统会提示安装浏览器插件, 点击安装

Similar documents
09 Linux Linux Linux Linux 009.indd /9/4 下午 12:11:10

快 速 入 门 (Linux) 概 述 文 档 目 的 本 文 档 介 绍 了 如 何 快 速 创 建 Linux 系 统 实 例 远 程 连 接 实 例 部 署 环 境 等 旨 在 引 导 您 一 站 式 完 成 实 例 的 创 建 登 录 和 快 速 环 境 部 署 云 服 务 器 ECS 实

Microsoft Word - template.doc

ebook70-21

K7VT2_QIG_v3

增加VM磁盘的大小UCSPM的

untitled

投影片 1

AL-MX200 Series

目 录 Linux Mint 简介... 3 Linux Mint 安装... 6 Linux Mint 桌面初识 软件管理...30 小技巧...40 总结...42

untitled

RAID RAID 0 RAID 1 RAID 5 RAID * ( -1)* ( /2)* No Yes Yes Yes A. B. BIOS SATA C. RAID BIOS RAID ( ) D. SATA RAID/AHCI ( ) SATA M.2 SSD ( )

投影片 1

Windows 2000 Server for T100

Microsoft Word - PS2_linux_guide_cn.doc

Serial ATA ( Silicon Image SiI3114)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 5 (4) S A T A... 8 (5) S A T A... 10

A9RF716.tmp

ssh-keygen -t rsa

AL-M200 Series

内 容 培 训 目 标 基 础 知 识 常 用 监 控 命 令 在 实 战 中 综 合 运 用 2

ebook140-9

Windows XP

ebook70-22

P4i45GL_GV-R50-CN.p65

PowerPoint 演示文稿

(Load Project) (Save Project) (OffLine Mode) (Help) Intel Hex Motor

Red Flag Linux Desktop 4.0 Red Flag Linux Desktop 4.0 1

epub83-1

Serial ATA ( nvidia nforce4 Ultra/SLI)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 6 (4) S A T A... 9 (5) S A T A (6) Micro

Abstract arm linux tool-chain root NET-Start! 2

IBM Rational ClearQuest Client for Eclipse 1/ IBM Rational ClearQuest Client for Ecl

T1028_Manual_KO_V3 0.pdf

Oracle 4

Guide to Install SATA Hard Disks

LSI U320 SCSI卡用户手册.doc

投影片 1

Windows 2000 Server for T100

Bus Hound 5

Windows 2000 Server for T100

05_資源分享-NFS及NIS.doc

自由軟體社群發展經驗與 Linux認證介紹

HOL-CHG-1695

ebook62-1

Kubenetes 系列列公开课 2 每周四晚 8 点档 1. Kubernetes 初探 2. 上 手 Kubernetes 3. Kubernetes 的资源调度 4. Kubernetes 的运 行行时 5. Kubernetes 的 网络管理理 6. Kubernetes 的存储管理理 7.

Serial ATA ( Nvidia nforce430)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 6 (4) S A T A... 9 (5) S A T A (6) Microsoft Win

Symantec™ Sygate Enterprise Protection 防护代理安装使用指南

Linux Ubuntu Part Linux Ubuntu Linux UNIX...19 Linux...19 Linux Linux...21 Linux GNU FSF Open So urce.

GoFlex Home UG Book.book

Microsoft Word - linux命令及建议.doc

DR2010.doc

资源管理软件TORQUE与作业调度软件Maui的安装、设置及使用

ebook35-14

Junos Pulse Mobile Security R1 2012, Juniper Networks, Inc.

Buffalo LinkStation Live/Pro(v1) 2010/04/08 By 小宗宗 寫在前面拆機會造成保固失效, 本文並不保證內容一定正確. 如造成你的設備故障, 本人恕不負責, 請自行斟酌決定

lect03.ppt

WinMDI 28

ebook140-8

Ác Åé å Serial ATA ( Sil3132) S A T A (1) SATA (2) BIOS SATA (3)* RAID BIOS RAID (4) SATA (5) SATA (a) S A T A ( S A T A R A I D ) (b) (c) Windows XP

IP505SM_manual_cn.doc

Linux操作系统

0 配置 Host MIB 设备 V ( 简体版 ) 0 Update: 2016/1/30

安装 nginx 添加 nginx 源 命令 :rpm -ivh gx.noarch.rpm 安装 nginx 命令 :yum install

宁夏专业技术人员服务平台

WebSphere Studio Application Developer IBM Portal Toolkit... 2/21 1. WebSphere Portal Portal WebSphere Application Server stopserver.bat -configfile..

775i65PE_BIOS_CN.p65

P4V88+_BIOS_CN.p65

1

SL2511 SR Plus 操作手冊_單面.doc

Microsoft PowerPoint - 03.IPv6_Linux.ppt [相容模式]

Chapter 2

HY144-D-SRC 固件升级指南

epub 61-2

P4VM800_BIOS_CN.p65

典型自编教材

P4Dual-915GL_BIOS_CN.p65

1.ai

RAID RAID 0 RAID 1 RAID 5 RAID * (-1)* (/ 2)* No Yes Yes Yes SATA A. B. BIOS SATA C. RAID BIOS RAID ( ) D. RAID/AHCI ( ) S ATA S S D ( ) (

安装 Nginx 命令 :yum install -y nginx 接着将 Nginx 设置为开机启动, 输入命令 :chkconfig nginx on Web 默认根目录为 :/usr/share/nginx/html/ 开放 80 端口 :iptables -I INPUT -p tcp --

2 2 3 DLight CPU I/O DLight Oracle Solaris (DTrace) C/C++ Solaris DLight DTrace DLight DLight DLight C C++ Fortran CPU I/O DLight AM

一 Grass 是 什 么 1 简 介 GRASS (Geographic Resources Analysis Support System, 地 理 资 源 分 析 支 持 系 统 ) 是 最 负 盛 名 的 开 源 地 理 信 息 系 统 (GIS) 以 下 是 它 的 一 些 特 点 : 1

.. 3 N

自由軟體教學平台

基于UML建模的管理管理信息系统项目案例导航——VB篇

自由軟體教學平台

IT (1) IDE... 2 (2) BIOS IDE RAID... 3 (3) RAID BIOS RAID... 5 (4) R A I D (5) ID E RA ID... 15

第4章 系统设置

Ác Åé å Serial ATA ( nvidia nforce4 SLI) S A T A (1) SATA (2) BIOS SATA (3)* RAID BIOS RAID (4) SATA (5) SATA (a) S A T A ( S A T A R A I D ) (b) (c)

Logitech Wireless Combo MK45 English

软件概述

C H A P T E R 7 Windows Vista Windows Vista Windows Vista FAT16 FAT32 NTFS NTFS New Technology File System NTFS

TPM BIOS Infineon TPM Smart TPM Infineon TPM Smart TPM TPM Smart TPM TPM Advanced Mode...8

Microsoft Word - 3D手册2.doc

Windows RTEMS 1 Danilliu MMI TCP/IP QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos eco

T

自由軟體教學平台

简易 Linux Server 部署教程系列之 06 使用 Samba 实现文件共享服务 ( 作者信息 : 阮晓龙投稿时间 :2018 年 5 月 4 日 ) 一 需求描述 1 需求说明支持 Windows Linux Unix Mac 等操作系统支持 Android ios 等移动平台支持计算机

Lexmark Prospect Pro200 Series 快速参考手册

Microsoft Word - 新正文.doc

Transcription:

1. VPN 使用帮助浏览器中输入 ( 请尽量使用 IE 浏览器,firefox 根据内核版本不同, 需要修改的参数也不一样, 请参阅 最新版 Firefox 和 Chrome 浏览器登陆 SSL 解决方案 ) https://159.226.12.20 输入用户名和密码, 新用户首次登陆会提示更改密码

输入后系统会提示安装浏览器插件, 点击安装

安装成功后, 系统会自动进入资源页面 根据开通的服务不同, 可能会需要开通不通的服务控件, 开启位置在默认资 源组标签上方

登陆成功 当资源列表显示为黑色时, 说明 vpn 已经接入成功, 请使用相应工具对资源 进行访问

2. SSH 连接主机 安装时候根据提示安装就可以, 选择 Free 非商业用途 打开 Xshell, 打开时候会弹出新建链接的窗口

点击新建, 打开新建链接窗口, 或者直接在 xshell 界面按下 alt+n 新建 alt+o 是打开链接列表窗口 名称 : 随便输入主机 : 就是你要链接的服务器地址 例如 :192.168.100.100 端口 : 默认一般都是 22

点击 用户身份验证 在这里输入你的用户名和密码 然后点击 确定 按钮开始链接 或者从第 4 步直接点击 确定 就会弹出提示输入用户名, 然后输入密码

也可以直接从 xshell 界面直接 ssh 链接服务器 格式就是 : ssh 用户 @ 服务器地址 回车弹出输入密码框, 输入密码确定, 即可连接

3. 创建新用户作为最高权限的用户 root, 可以执行任何命令, 稍加不慎误执行了命令, 就会破坏系统 因此, 建议创建另一个新的帐号, 并使用他登陆服务器, 执行任何操作 当使用新帐号登陆后, 可以通过 sudo 命令来获得超级用户的权限 如何增加新用户, 通过 SSH 登陆 Linux 系统, 不同版本的 Linux 使用命令也略有不同, 如下 : CentOS / Fedora 使用以下命令创建新帐号, 使用你想增加的用户名, 替换 exampleuser : adduser exampleuser 为新用户设置密码 : passwd exampleuser 增加新用户到 wheel 用户组, 以获得执行 sudo 的权限 : CentOS 7 / Fedora usermod exampleuser -a -G wheel CentOS 6 usermod -a -G wheel exampleuser Debian / Ubuntu 使用以下命令创建新帐号, 使用你想增加的用户名, 替换 exampleuser : adduser exampleuser 增加新用户到 wheel 用户组, 以获得执行 sudo 的权限 : usermod -a -G sudo exampleuser

当新用户创建后, 退出 root 登陆 : logout 重新使用刚刚创建的新用户登陆系统. 使用你的新用户名替换下方的 exampleuser, 以及你的实际 IP 地址替换 123.456.78.90: ssh exampleuser@123.456.78.90 现在已经使用了新账号登陆 Linux, 而不是危险的 root 帐号 当然, 在需要执行超级用户 (root) 才有权限的命令时, 在命令前面加上 sudo 即可 例如, 可以执行 sudo iptables -L 去查看 iptables 的配置 另外, 所有使用 sudo 执行的命令都将记录在 /var/log/auth.log 这份日志中, 如果被入侵了, 可以查查这份日志, 也许能有所发现

4. 使用 SSH 密钥认证在本地 Linux / Mac 机器可以通过在终端中输入以下命令, 生成 SSH 密钥 Windows 的 PuTTY 用户请看其他教程 ssh-keygen 当输入命令后, 会出现引导提示, 按照提示, 输入私钥默认存放位置, 回车即使用括号内的默认地址 Generating public/private rsa key pair. Enter file in which to save the key (/home/xxx/.ssh/id_rsa): 接着询问, 输入 通行短语, 可以是一句话, 相比密码更长 Enter passphrase (empty for no passphrase): 重复输入, 完成 SSH 密钥的生成 注意 : 两个密钥文件已经创建, 默认路径在 \~/.ssh 文件夹中, 两个文件分别是 : 私钥 (id_rsa) 和公钥 (id_rsa.pub). 公钥需要上传到远程 Linux 服务器中, 另一个文件则藏好, 莫被别人偷去! 使用 SCP 命令上传公钥到远程服务器 : scp ~/.ssh/id_rsa.pub example_user@123.456.78.90: 如果远程服务器上没有 ~/.ssh 这个目录, 就创建一个 ssh 目录

mkdir.ssh 将上传上去的公钥放到这个目录中 : mv id_rsa.pub.ssh/authorized_keys 修改.ssh 的所有者 ( 注意 : 所有者不要是 root 帐号 ) 和执行权限 ( 仅所有者可读写 ): chown -R example_user:example_user.ssh chmod 700.ssh chmod 600.ssh/authorized_keys

5. 关闭密码 SSH 登陆和 Root 帐号登陆 登陆远程服务器, 并编辑 SSH 配置文件 : 选项 PasswordAuthentication 的意思是 SSH 登陆是否使用密码验证的方 式, 改为 no, 即关闭密码验证 PasswordAuthentication no PermitRootLogin: 是否运行 root 登陆, 同样的改为 no : PermitRootLogin no 保存修改, 并重启 SSH 服务 :Debian/Ubuntu Users: sudo service ssh restart Fedora/CentOS: sudo systemctl restart sshd 重启后修改才会生效

6. 设置虚拟机与系统时间同步问题 1. 编辑文件 /etc/sysconfig/clock 文件 sudo vi /etc/sysconfig/clock ZONE="Asia/Shanghai" # 将时区设为上海 UTC=false # 设置为 false, 硬件时钟不于 utc 时间一致 ARC=false 2. 将 linux 的时区设置为上海时区 sudo ln -sf /usr/share/zoneinfo/asia/shanghai /etc/localtime 3. 对准时间, 需要先安装 ntp 服务器 yum install ntp sudo ntpdate asia.pool.ntp.org 4. 设置硬件时间和系统时间一致并校准 sudo /sbin/hwclock --systohc 至此,linux 系统时间和计算机硬件时间都是 cst 时间了, 并且为上海时区

7. 配置主从节点 NTP 服务 1. 安装 NTP 服务 yum install ntp 2. 配置 NTP 服务, prefer 意味着首选 IP 地址, 在主节点设置对准 65.55.56.206 时间, 从节点设置主节点 IP vi /etc/ntp.conf 主 : server 65.55.56.206 prefer server 0.asia.pool.ntp.org server 1.asia.pool.ntp.org server 2.asia.pool.ntp.org 副 : server m1 prefer #m1 为主节点 IP 3. 设置开机启动 NTP 服务 chkconfig ntpd on 4. 检查是否设置成功, 其中 2-5 为 on 状态就代表成功 chkconfig --list ntpd

8. 在 yum 运行时强制关闭, 后启动 yum 报错 [centos@h1 ~]$ sudo yum search parquet Loaded plugins: fastestmirror, refresh-packagekit, security Existing lock /var/run/yum.pid: another copy is running as pid 4292. Another app is currently holding the yum lock; waiting for it to exit... The other application is: yum Memory : 24 M RSS (863 MB VSZ) Started: Mon Dec 5 23:45:51 2016-09:56 ago State : Traced/Stopped, pid: 4292 解决方案 : rm -f /var/run/yum.pid

9. yum 下载慢或 yum 无法下载更换 yum 源 163 <=> wget http://centos.ustc.edu.cn/centos-base.repo 搜狐 <=>wget http://mirrors.sohu.com/help/centos-base-sohu.repo 阿里云 <=>wget -O /etc/yum.repos.d/centos-base.repo http://mirrors.aliyun.com/repo/centos-6.repo 网易 <=>wget http://mirrors.163.com/.help/centos-base-163.repo (1) cd /etc/yum.repos.d (2) mv CentOS-Base.repo CentOS-Base.repo.backup (3) wget http://mirrors.163.com/.help/centos6-base-163.repo (4) mv CentOS6-Base-163.repo CentOS-Base.repo (5) yum clean all (6) yum makecache

10. 系统内部磁盘扩容 1 使用 fdisk -l 查询当前系统分区情况 [root@localhost Desktop]# fdisk -l Disk /dev/sda: 42.9 GB, 42949672960 bytes 255 heads, 63 sectors/track, 5221 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0006fead Device Boot Start End Blocks Id System /dev/sda1 * 1 39 307200 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 39 2354 18598912 83 Linux /dev/sda3 2354 2611 2064384 82 Linux swap / Solaris 2 创建主分区

[root@localhost Desktop]# fdisk /dev/sda // 对 sda 进行操作 WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u'). Command (m for help): m // 查看帮助信息 Command action a b c d l m n o p q s t toggle a bootable flag edit bsd disklabel toggle the dos compatibility flag delete a partition list known partition types print this menu add a new partition create a new empty DOS partition table print the partition table quit without saving changes create a new empty Sun disklabel change a partition's system id

u change display/entry units v w x verify the partition table write table to disk and exit extra functionality (experts only) Command (m for help): n // 创建新分区 Command action e extended p primary partition (1-4) p // 主分区 Selected partition 4 // 主分区最多创建 4 个, 由于系统已经有 3 个主分 区, 自动选择 partition 4 First cylinder (2611-5221, default 2611): // 起始柱面默认回车 Using default value 2611 Last cylinder, +cylinders or +size{k,m,g} (2611-5221, default 5221): // 截止柱面默认回车也可以 +20G Using default value 5221 Command (m for help): p // 查看最新分区信息 Disk /dev/sda: 42.9 GB, 42949672960 bytes 255 heads, 63 sectors/track, 5221 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0006fead Device Boot Start End Blocks Id System /dev/sda1 * 1 39 307200 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 39 2354 18598912 83 Linux /dev/sda3 2354 2611 2064384 82 Linux swap / Solaris /dev/sda4 2611 5221 20966162+ 83 Linux 3 保存退出分区操作 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. WARNING: Re-reading the partition table failed with error 16: Device or resource busy. The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8)

Syncing disks. // 虚拟机需要重启才能识别新分区 4 格式化相关分区 重启后, 格式化分区 root@localhost Desktop]# mkfs.ext4 /dev/sda4 // 将 sda4 格式成 ext4 格式 mke2fs 1.41.12 (17-May-2010) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 1310720 inodes, 5241540 blocks 262077 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=0 160 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000

Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 22 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. 5 挂载分区 注意 : 将指定文件夹挂载到新分区, 相关内容会被清空, 比如要将 /usr/local 下的内容挂载到 /dev/sda4, 需要将 /usr/local 下的相关内容备份, 挂载结束后, 在复制到 /usr/local 下 修改 /etc/fstab 文件, 在结尾添加 /dev/sda4 /usr/local/ ext4 defaults 0 0 重启机器, 利用 df -h 查看磁盘情况 Size Used Avail Use% Mounted on /dev/sda2 18G 13G 3.7G 78% / tmpfs 947M 224K 947M 1% /dev/shm /dev/sda1 283M 91M 177M 34% /boot /dev/sda4 20G 44M 19G 1% /usr/local 可以看到 /usr/local/ 已经挂载到 /dev/sda4 上, 空间为 20G, 将备份的的内容重新复制到 /usr/local/ 即可