简体   繁体   English

如何运行Linux命令WHM VPS

[英]How do I run linux commands WHM VPS

I'd like to check the MySQL & PHP Versions that are running on my Linux VPS. 我想检查Linux VPS上运行的MySQL和PHP版本。 I don't anything about this stuff. 我对这个东西一无所知。

php -m 的PHP -M

mysql -v mysql -v

I've found these commands above to run, but I don't physically know where to input them? 我已经找到了上面要运行的这些命令,但实际上我不知道在哪里输入它们? Where's the command line? 命令行在哪里? Sorry if this is stupid. 抱歉,这很愚蠢。

I have access to my WHM, root, cPanel etc. 我可以访问我的WHM,root,cPanel等。

Thanks 谢谢

You can view the MySQL and PHP version from cPanel using the following steps. 您可以使用以下步骤从cPanel查看MySQL和PHP版本。

  1. Log into cPanel. 登录到cPanel。
  2. Under General Information on the right panel, click Server Information. 在右侧面板的“常规信息”下,单击“服务器信息”。 一般信息视图
  3. Under the Item column, find PHP & MySQL Version. 在项目列下,找到PHP和MySQL版本。
  4. In the Detail column, note the version number. 在“详细信息”列中,记下版本号。 服务器信息视图

You might be able to ssh into the machine, which will show you a bash prompt where you can input your commands. 您也许可以通过ssh进入计算机,这将显示一个bash提示符,您可以在其中输入命令。

If you can't ssh because it is just a rented php server, you can write a script in php to execute your commands, also php has a phpinfo(); 如果由于它只是租用的php服务器而无法ssh,则可以在php中编写脚本来执行命令,而且php具有phpinfo(); command which is useful. 该命令很有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM