markdown CentOS的
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown CentOS的相关的知识,希望对你有一定的参考价值。
# basic
sudo yum update && sudo yum -y install nload iotop jnettop htop zsh tmux git -y
# zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" -y
chsh -s $(which zsh)
# java 8
yum install openjdk-8-jdk maven -y
# maven
wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
yum install apache-maven -y
# SSR with CentOS
## 获取权限
```
sudo su
```
## 安装python
```
#安装编译Python需要的组件
yum groupinstall “Development tools”
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel
#下载并解压最新Python 2.7的源代码
wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tar.xz
tar xf Python-2.7.10.tar.xz
#编译与安装Python
cd Python-2.7.**10**
./configure –prefix=/usr/local
make && make install
make clean
make distclean
#将系统python命令指向Python 2.7
mv /usr/bin/python /usr/bin/python2.6.6
ln -s /usr/local/bin/python2.7 /usr/bin/python
#将yum需要执行的python指定为2.6.6
vi /usr/bin/yum
```
将文件头部的
```
#!/usr/bin/python
```
改成
```
#!/usr/bin/python2.6.6
```
```
wget https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz
tar xf Python-2.7.8.tgz
cd Python-2.7.8
./configure --prefix=/usr/local
make && make install
```
## 安装pip
```
yum -y install epel-release
yum -y install python-pip
```
以上是关于markdown CentOS的的主要内容,如果未能解决你的问题,请参考以下文章
markdown [centos on centos] #lamp #centos #virtual-host #subdomain #configuration
markdown Swapfile CentOS
markdown 在Centos 7上部署节点
markdown 搬瓦工Centos下安装HTOP
markdown CentOS防火墙命令
markdown Centos LAMP