如何通过ssh检查ubuntu服务器上php和apache的存在 [英] How to check the presence of php and apache on ubuntu server through ssh

查看:87
本文介绍了如何通过ssh检查ubuntu服务器上php和apache的存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过ssh检查在Ubuntu服务器上是否已将apache与php和mysql一起安装?

如果已安装,则在哪个目录中?

如果安装了其他软件包,例如lighttpd,则位于该位置.

解决方案

键入aptitude以启动程序包管理器.在那里,您可以看到安装了哪些应用程序.

使用/搜索软件包.尝试搜索apache2php5(或要使用的任何版本).如果已安装,则它们应为粗体并在其前面带有i.如果尚未安装它们(位于该行前面的p),并且要安装它们(并且具有root权限),请使用+进行选择,然后使用g(两次)进行安装.

警告语:在这样做之前,快速浏览一下网络上的某些 aptitude 教程可能是明智的.

How can I check whether apache is installed with php and mysql on Ubuntu server through ssh?

Also if it is installed, in which directory?

And if in case some other package is installed, like lighttpd, where that is.

解决方案

Type aptitude to start the package manager. There you can see which applications are installed.

Use / to search for packages. Try searching for apache2 and php5 (or whatever versions you want to use). If they are installed, they should be bold and have an i in front of them. If they are not installed (p in front of the line) and you want to install them (and you have root permissions), use + to select them and then g (twice) to install it.

Word of warning: Before doing that, it might be wise to have a quick look at some aptitude tutorial on the web.

这篇关于如何通过ssh检查ubuntu服务器上php和apache的存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆