5ep9lzv 发表于 2024-10-4 13:10:18

怎么样在 Windows 环境下配置 PHP 研发运行环境


    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">咱们</span>都<span style="color: black;">晓得</span> PHP 运行需要的环境<span style="color: black;">一般</span>被<span style="color: black;">叫作</span>为 AMP。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">其中 A 是 Apache 应用服务器,M 是 Mysql,P <span style="color: black;">便是</span> PHP 了。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">实质</span>上,<span style="color: black;">非常多</span>人可能会<span style="color: black;">运用</span>一个测试 Mysql,<span style="color: black;">然则</span>针对<span style="color: black;">有些</span>小型<span style="color: black;">研发</span>,你可能需要安装 Mysql 到你的本地计算机上。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">通常</span>的配置<span style="color: black;">办法</span><span style="color: black;">便是</span>分别下载安装软件<span style="color: black;">而后</span>进行安装。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">咱们</span><span style="color: black;">这儿</span>介绍的是 xampp。</p>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">xampp 的安装</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">xampp 将你所需要的软件都集中在<span style="color: black;">一块</span>了。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">你<span style="color: black;">再也不</span>需要到处下载软件,你只需要安装 xampp 就<span style="color: black;">能够</span>了。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">当然你<span style="color: black;">能够</span>将 xampp 安装成服务,在 Windows 每次<span style="color: black;">起步</span>的时候自动<span style="color: black;">起步</span>,<span style="color: black;">同期</span>你<span style="color: black;">亦</span><span style="color: black;">能够</span><span style="color: black;">运用</span> xampp 编便携版本,<span style="color: black;">经过</span>这个便携版本,直接使用命令工具就<span style="color: black;">能够</span><span style="color: black;">起步</span> 3 个服务了。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">当你不需要进行 PHP <span style="color: black;">研发</span>的时候,直接关闭这个进程就<span style="color: black;">能够</span>了,<span style="color: black;">能够</span>节约不少系统资源。</p>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">下载<span style="color: black;">位置</span></h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">XAMPP 的下载<span style="color: black;">位置</span>为: Download XAMPP</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">进入上面进行下载就<span style="color: black;">能够</span>了,<span style="color: black;">倘若</span>你的系统比较老,你可能还需要<span style="color: black;">选取</span><span style="color: black;">区别</span>的版本,你<span style="color: black;">能够</span><span style="color: black;">经过</span>单击下面的<span style="color: black;">更加多</span>下载来下载<span style="color: black;">区别</span>的版本。</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/622e67756f654052b52ce29fcb8705b2~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728208082&amp;x-signature=4t2qfZrqlnK8vP1h4ggSfJ%2B0Nso%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">而后</span>在<span style="color: black;">更加多</span>下载中,针对你操作系统,<span style="color: black;">选取</span><span style="color: black;">区别</span>的版本。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">咱们</span><span style="color: black;">这儿</span><span style="color: black;">选取</span>的是 Windows 的版本。</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/3de1248c48d3478483af06d683e7257c~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728208082&amp;x-signature=Tq4PNpejgwMwF606fn%2BV2gsyX9k%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">而后</span>还<span style="color: black;">能够</span><span style="color: black;">选取</span><span style="color: black;">区别</span>的压缩格式。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">7zip <span style="color: black;">或</span> zip 都行。</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/40acf4d4335c421c9ce7ebcba776693d~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728208082&amp;x-signature=k9hFNErqa3jCv%2FbdLQKKloOktgo%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">解压</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">将下载的压缩包解压到目录中。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">需要<span style="color: black;">重视</span>的是,<span style="color: black;">这儿</span>你需要解压到根目录中。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">例如,<span style="color: black;">倘若</span>你<span style="color: black;">期盼</span>在 C 盘下运行 xampp ,<span style="color: black;">那样</span>这个文件夹应该在 C 盘下,而不在其他的目录下。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">路径为 c:\xampp,<span style="color: black;">一样</span>的,<span style="color: black;">倘若</span>你<span style="color: black;">期盼</span>在 D 盘下运行,<span style="color: black;">那样</span>这个解压目录就应该为 d:\xampp。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">这是<span style="color: black;">由于</span> xampp 定义的配置文件和目录都是从根目录下的绝对路径。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">否则的话,你的 xampp 是<span style="color: black;">无</span>办法运行的。</p>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">运行</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">你<span style="color: black;">能够</span>将 XAMPP 安装成服务,<span style="color: black;">或</span>直接运行<span style="color: black;">亦</span>行。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">直接单击<span style="color: black;">选取</span> xampp_start.exe 来直接运行就<span style="color: black;">能够</span>了。</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p6-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/c87f9a573539440f8c8b4bb0f7fea089~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728208082&amp;x-signature=n5Y3yMuOkPkiHaTPBIJEbE2l6SI%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">而后</span>将会弹出一个窗口,在这个窗口中将会<span style="color: black;">表示</span>你运行的 xampp 的信息。</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/d8e5c60f5120457983abbc5add4cd6bd~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728208082&amp;x-signature=W5AEGtJhIM98uPWDsFmu98GnX0I%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">校验安装</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">经过</span>浏览器<span style="color: black;">拜访</span>你的 localhost</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">倘若</span>你能看到下面的界面,就说明安装配置<span style="color: black;">已然</span>完<span style="color: black;">成为了</span>。</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/dd8f3435461549e298cf71726c7576c8~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728208082&amp;x-signature=h2Cw4pH7hxyOzTbRGGc%2F106ETYg%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">至此在 Windows 的配置<span style="color: black;">已然</span>完<span style="color: black;">成为了</span>。</p>




页: [1]
查看完整版本: 怎么样在 Windows 环境下配置 PHP 研发运行环境