在CentOS上面安装一些常用的包

技巧 2016年5月5日

从Debian转过来还是有点不怎么习惯······开篇文章记下来那些常用的包怎么安装才行。

常用的软件包

Python-pip

rpm -iUvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm #添加EPEL(Extra Packages for Enterprise Linux)源
yum update
yum install python-pip
pip install --upgrade pip #自更新pip,因为EPEL里面的pip版本还是挺旧的

参考自How to Install Pip on CentOS 7

PHP7+Apache2 Httpd

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install php70w php70w-cli php70w-opcache php70w-common

参考自PHP 7 on CentOS/RHEL 6.7 and 7.2 via Yum

Tags

Howard Liu

在读大学生,平常使用窝窝屎提高血压和听网课使自己更快入睡。

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.