Home > Backend Development > PHP Tutorial > ubuntu配置php开发环境

ubuntu配置php开发环境

WBOY
Release: 2016-06-20 12:31:42
Original
844 people have browsed it

[amp]

apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server

apt-get install php5

apt-get install php5-gd php5-curl php5-xdebug


[apt-get]

apt-cache search package 搜索包

apt-cache show package 获取包的相关信息,如说明、大小、版本等

apt-cache depends package 了解使用依赖

apt-cache rdepends package 查看该包被哪些包依赖

apt-get install package 安装包

apt-get install package --reinstall 重新安装包

apt-get -f install 修复安装"-f = --fix-missing"

apt-get remove package 删除包

apt-get remove package --purge 删除包,包括删除配置文件等

apt-get update 更新源

apt-get upgrade 更新已安装的包

apt-get dist-upgrade 升级系统

apt-get dselect-upgrade 使用 dselect 升级

apt-get build-dep package 安装相关的编译环境

apt-get source package 下载该包的源代码

apt-get clean && apt-get autoclean 清理无用的包

apt-get check 检查是否有损坏的依赖


[错误处理]

1 su认证失败

sudo passwd 重新设置密码


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template