<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                > 原文出處:https://www.phodal.com/blog/bare-minimum-iot-system-restful/ 這里不會再重述之前的問題,這里只是將需要的步驟一個個寫下來,然后丟到這里好好說一下。至于RESTful是什么,前面已經介紹了,就不再重復了。那么下面,我們就用Laravel來搭建一個平臺給物聯網用的。 ## 安裝Laravel 這個就比較簡單了,不過在那之前你要有git以及安裝了php環境,這個在linux上面比較好實現,可以用Raspberry PI或者是你的電腦來做這個,不一定用用上你的服務器。 ~~~ git clone https://github.com/laravel/laravel? ~~~ 先clone這個git,如果你沒有安裝好PHP,請安裝好,and go on。 ~~~ cd laravel ~~~ laravel用到了php的包管理工具composer,于是我們還需要用到composer,與Laravel相比也算是一個優雅的工具。 ~~~ curl -sS https://getcomposer.org/installer | php ~~~ 這里推薦的是linux系統,如果你是*nix都是可以的(ps:mac os x屬于unix分支),除了windows,所以如果是windows,請直接下載 [Composer-Setup](https://getcomposer.org/Composer-Setup.exe) 然后讓我們安裝所需要的那些包 ~~~ php composer.phar install ~~~ 當然這里用的是比較通用的,如果你是*nix,有支持可以直接 ~~~ composer install ~~~ ## 配置MySQL 這里并不會列舉MySQL的安裝方法,如果你是openSUSE,可以 ~~~ zypper install mysql ~~~ 這個也可以,不過最近我盡量到遷移到MariaDB了。 ~~~ zypper install mariadb ~~~ 當然,最簡單的方法是直接上官網。這里說的是修改database.php ~~~ app/config/database.php ~~~ 要修改的就是這個 ~~~ 'mysql' => array( 'driver' => 'mysql', 'host' => 'localhost', 'database' => 'iot', 'username' => 'root', 'password' => '940217', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', ), ~~~ 如果你已經有phpmyadmin,似乎對你來說已經很簡單了,如果沒有的話,就直接用 ~~~ mysql -uroot -p ~~~ 來創建一個新的 ~~~ CREATE DATABASE IF NOT EXISTS bbs default charset utf8 COLLATE utf8_general_ci; ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看