wittyResry / myIssue

My issue mark down^_^ 欢迎吐槽,讨论~~
https://github.com/wittyResry/myIssue/issues
The Unlicense
5 stars 1 forks source link

在Centos搭建github pages #11

Closed wittyResry closed 8 years ago

wittyResry commented 8 years ago
$ rpm -qa #查看安装的包
$ yum search irb #查找ruby-irb
$ yum list '*ruby*' 
wittyResry commented 8 years ago
$ uname -a # 查看内核/操作系统/CPU信息 
$ head -n 1 /etc/issue # 查看操作系统版本 
$ cat /proc/cpuinfo # 查看CPU信息 
$ hostname # 查看计算机名 
$ lspci -tv # 列出所有PCI设备 
$ lsusb -tv # 列出所有USB设备 
$ lsmod # 列出加载的内核模块 
$ env # 查看环境变量资源 
$ free -m # 查看内存使用量和交换区使用量 
$ df -h # 查看各分区使用情况 
$ du -sh <目录名> # 查看指定目录的大小 
$ grep MemTotal /proc/meminfo # 查看内存总量 
$ grep MemFree /proc/meminfo # 查看空闲内存量 
$ uptime # 查看系统运行时间、用户数、负载 
$ cat /proc/loadavg # 查看系统负载磁盘和分区 
$ mount | column -t # 查看挂接的分区状态 
$ fdisk -l # 查看所有分区 
$ swapon -s # 查看所有交换分区 
$ hdparm -i /dev/hda # 查看磁盘参数(仅适用于IDE设备) 
$ dmesg | grep IDE # 查看启动时IDE设备检测状况网络 
$ ifconfig # 查看所有网络接口的属性 
$ iptables -L # 查看防火墙设置 
$ route -n # 查看路由表 
$ netstat -lntp # 查看所有监听端口 
$ netstat -antp # 查看所有已经建立的连接 
$ netstat -s # 查看网络统计信息进程 
$ ps -ef # 查看所有进程 
$ top # 实时显示进程状态用户 
$ w # 查看活动用户 
$ id <用户名> # 查看指定用户信息 
$ last # 查看用户登录日志 
$ cut -d: -f1 /etc/passwd # 查看系统所有用户 
$ cut -d: -f1 /etc/group # 查看系统所有组 
$ crontab -l # 查看当前用户的计划任务服务 
$ chkconfig –list # 列出所有系统服务 
$ chkconfig –list | grep on # 列出所有启动的系统服务程序 
$ rpm -qa # 查看所有安装的软件包
wittyResry commented 8 years ago

解决安装rvm

[qingyu@localhost ~]$ gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
gpg: 下载密钥‘D39DC0E3’,从 hkp 服务器 keys.gnupg.net
gpg: /usr/qingyu/.gnupg/trustdb.gpg:建立了信任度数据库
gpg: 密钥 D39DC0E3:公钥“Michal Papis (RVM signing) <mpapis@gmail.com>”已导入
gpg: 没有找到任何绝对信任的密钥
gpg: 合计被处理的数量:1
gpg:           已导入:1  (RSA: 1)
[qingyu@localhost ~]$ curl -sSL https://get.rvm.io | bash -s stable
Downloading https://github.com/rvm/rvm/archive/1.27.0.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.27.0/1.27.0.tar.gz.asc
gpg: 于 2016年03月29日 星期二 21时49分47秒 CST 创建的签名,使用 RSA,钥匙号 BF04FF17
gpg: 完好的签名,来自于“Michal Papis (RVM signing) <mpapis@gmail.com>”
gpg: 警告:这把密钥未经受信任的签名认证!
gpg:       没有证据表明这个签名属于它所声称的持有者。
主钥指纹: 409B 6B17 96C2 7546 2A17  0311 3804 BB82 D39D C0E3
子钥指纹: 62C9 E5F4 DA30 0D94 AC36  166B E206 C29F BF04 FF17
GPG verified '/usr/qingyu/.rvm/archives/rvm-1.27.0.tgz'

Installing RVM to /usr/qingyu/.rvm/
    Adding rvm PATH line to /usr/qingyu/.profile /usr/qingyu/.mkshrc /usr/qingyu/.bashrc /usr/qingyu/.zshrc.
    Adding rvm loading line to /usr/qingyu/.profile /usr/qingyu/.bash_profile /usr/qingyu/.zlogin.
Installation of RVM in /usr/qingyu/.rvm/ is almost complete:

  * To start using RVM you need to run `source /usr/qingyu/.rvm/scripts/rvm`
    in all your open shell windows, in rare cases you need to reopen all shell windows.

# Qingyu Li,
#
#   Thank you for using RVM!
#   We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne, Michal & team.

In case of problems: https://rvm.io/help and https://twitter.com/rvm_io

  * WARNING: You have '~/.profile' file, you might want to load it,
    to do that add the following line to '/usr/qingyu/.bash_profile':

      source ~/.profile
wittyResry commented 8 years ago
[qingyu@localhost ~]$ gem install jekyll
Fetching: colorator-0.1.gem (100%)
Successfully installed colorator-0.1
Fetching: sass-3.4.22.gem (100%)
Successfully installed sass-3.4.22
Fetching: jekyll-sass-converter-1.4.0.gem (100%)
Successfully installed jekyll-sass-converter-1.4.0
Fetching: rb-fsevent-0.9.7.gem (100%)
Successfully installed rb-fsevent-0.9.7
Fetching: ffi-1.9.10.gem (100%)
Building native extensions.  This could take a while...
Successfully installed ffi-1.9.10
Fetching: rb-inotify-0.9.7.gem (100%)
Successfully installed rb-inotify-0.9.7
Fetching: listen-3.0.8.gem (100%)
Successfully installed listen-3.0.8
Fetching: jekyll-watch-1.4.0.gem (100%)
Successfully installed jekyll-watch-1.4.0
Fetching: kramdown-1.11.1.gem (100%)
Successfully installed kramdown-1.11.1
Fetching: liquid-3.0.6.gem (100%)
Successfully installed liquid-3.0.6
Fetching: mercenary-0.3.6.gem (100%)
Successfully installed mercenary-0.3.6
Fetching: rouge-1.10.1.gem (100%)
Successfully installed rouge-1.10.1
Fetching: safe_yaml-1.0.4.gem (100%)
Successfully installed safe_yaml-1.0.4
Fetching: jekyll-3.1.6.gem (100%)
ERROR:  Error installing jekyll:
    jekyll requires Ruby version >= 2.0.0.

Solve with $ rvm install 2.0.0 && gem install jekyll