我是靠谱客的博主 温暖电脑,这篇文章主要介绍Linux获取机器码,现在分享给大家,希望可以做个参考。

1.准备工作

安装php,并已经配置好环境变量path

2.运行hardware.sh获取机器码

shell> php ./hardware.sh

3.脚本内容

#!/usr/bin/env php
<?php
    function command_hardware()
    {
        if(function_exists('zend_loader_enabled') && zend_loader_enabled())
        {
            foreach (zend_get_id() as $hardware) {
                echo $hardware, "n";
            }
        } else {
            echo 'zend guard loader not installed or not enabled!';
            exit;
        }
    }
command_hardware();

最后

以上就是温暖电脑最近收集整理的关于Linux获取机器码的全部内容,更多相关Linux获取机器码内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(58)

评论列表共有 0 条评论

立即
投稿
返回
顶部