Skip to content

Instantly share code, notes, and snippets.

@wangxianhe
wangxianhe / centos yum 升级gcc.md
Last active May 2, 2018 08:56
centos gcc 升级

Centos6.5操作系统自带gcc版本太低了,有时候编译软件的时候需要高版本的gcc。 升级gcc最好的方式还是用yum,因为自己编译源码有可能功能不全。下面是从网上找的使用YUM升级GCC的方法。很方便,学习了。

参考: https://gist.github.com/stephenturner/e3bc5cfacc2dc67eca8b

@wangxianhe
wangxianhe / gist使用介绍.md
Last active December 28, 2017 12:23
gist 使用方法介绍

gist功能:

1、记录代码片段; 2、记录技术文档; 3、分享; 4、快速检索; 5、页面简约、操作简单;

参考:

http://gohom.win/2015/11/26/gist/

一级标题

二级标题

三级标题

加粗字体

倾斜

引用

@wangxianhe
wangxianhe / github使用介绍.md
Last active December 29, 2017 12:25
github使用介绍
@wangxianhe
wangxianhe / git_toturial
Created December 30, 2017 08:40 — forked from guweigang/git_toturial
git命令大全
git init # 初始化本地git仓库(创建新仓库)
git config --global user.name "xxx" # 配置用户名
git config --global user.email "xxx@xxx.com" # 配置邮件
git config --global color.ui true # git status等命令自动着色
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global --unset http.proxy # remove proxy configuration on git
git clone git+ssh://git@192.168.53.168/VT.git # clone远程仓库

注册google邮箱时:“此电话号码无法用于进行验证”的解决办法

解决办法:使用iphone google邮箱客户端注册

@wangxianhe
wangxianhe / Ubuntu安装shadowsocksR客户端
Created April 11, 2018 10:06
Ubuntu安装shadowsocksR客户端
参考资料:
https://dcamero.azurewebsites.net/shadowsocksr.html#linux
@wangxianhe
wangxianhe / CentOS 7 高性能计算(HPC)集群搭建过程.md
Last active May 4, 2023 03:32
CentOS 7 高性能计算(HPC)集群搭建过程

文档说明

此文档内容:在CentOS7系统上搭建高性能计算HPC集群。

准备条件

  1. 至少两台服务器或者电脑(没有的,使用VMware虚拟机代替也行。此文档为了操作方便,使用VMware虚拟机代替做示范。)  

  2. CentOS7操作系统软件镜像

  3. torque+maui 作业调度系统软件

刚安装的CentOS7自带的yum源不好使,需要换。
# 修改默认yum源为网易的mirrors.163.com
1、首先备份系统自带yum源配置文件。
[root@localhost ~]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、下载163的yum源配置文件到/etc/yum.repos.d/
[root@localhost yum.repos.d]# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
3、运行yum makecache生成缓存,然后就可以使用了。