怎麼安裝php7
㈠ windows怎麼安裝php7.3
在Windows上安裝php最簡單的辦法就是直接到php的官方網站上去下載,你可以選擇你要的版本,然後點擊下載就可以直接安裝了,很安全也很快捷,不用擔心安裝錯誤。
㈡ debian8怎麼安裝php7
debian8 編譯安裝 php7
目錄(?)[-]
Please reinstall the libcurl distributionCannot find OpenSSL
configure error Unable to locate gmph
Can not find recodeh anywhere under usr usrlocal usr optCannot find pspell
Please reinstall the mysql distribution
mcrypth not found Please reinstall libmcryptxml2-config not found
安裝編譯器
apt-get install build-essential autoconf automake libtool bison re2c獲取PHP安裝包
wget https://downloads.php.net/~ab/php-7.0.13RC1.tar.gz安裝dev包
apt-get install libxml2-dev libssl-dev libbz2-dev libjpeg-dev libpng-dev libxpm-dev libfreetype6-dev libgmp-dev libgmp3-dev libmcrypt-dev libmysqlclient15-dev libpspell-dev librecode-dev進行編譯安裝
./buildconf //用來生成configure腳本
./configure \
--prefix=/usr \
--with-config-file-path=/etc \
--enable-mbstring \
--enable-zip \
--enable-bcmath \
--enable-pcntl \
--enable-ftp \
--enable-exif \
--enable-calendar \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--with-curl \
--with-mcrypt \
--with-iconv \
--with-gmp \
--with-pspell \
--with-gd \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-zlib-dir=/usr \
--with-xpm-dir=/usr \
--with-freetype-dir=/usr \
--with-t1lib=/usr \
--enable-gd-native-ttf \
--enable-gd-jis-conv \
--with-openssl \
--with-pdo-mysql=/usr \
--with-gettext=/usr \
--with-zlib=/usr \
--with-bz2=/usr \
--with-recode=/usr \
--with-mysqli=/usr/bin/mysql_config
備註:錯誤1:Cannot find OpenSSL's libraries 解決:
確認已安裝過 openssl、libssl-dev 包,還是會提示該錯誤;解決辦法:
root@test2:~/php-5.3.27# find / -name libssl.so輸出結果為: /usr/lib/x86_64-linux-gnu/libssl.so初步判斷它可能只會在 /usr/lib/ 下尋找 libssl.so 文件,於是:
ln -s /usr/lib/x86_64-linux-gnu/libssl.so /usr/lib錯誤2:debian Please reinstall the libcurl distribution 解決:
# RetHat CentOS or Fedora 使用下面安裝命令yum install curl curl-devel
# Debian or Ubuntu使用下面的安裝命令
apt-get install curl
apt-get install libcurl4-gnutls-dev
錯誤3:Unable to locate gmp.h 解決:
在https://launchpad.net/debian/+source/gmp 下載 gmp源碼包,接著 ./configure && make && make install編譯 安裝
make &&make install
報錯處理
Please reinstall the libcurl distributionaptitude search libcurl4
aptitude install libcurl4-gnutls-dev
Cannot find OpenSSL』
wget https://www.openssl.org/source/openssl-1.0.2j.tar.gztar -zxvf openssl-1.0.2j.tar.gz
cd openssl-1.0.2j
./config
make && make install
configure: error: Unable to locate gmp.h
sudo apt-get install libgmp-dev libgmp3-devln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.hCan not find recode.h anywhere under /usr /usr/local /usr /opt.
apt-get install librecode-dev
Cannot find pspell
apt-get install libpspell-dev
Please reinstall the mysql distribution
apt-get install libmysqlclient15-dev
mcrypt.h not found. Please reinstall libmcrypt.
apt-get install libmcrypt-dev
xml2-config not found
apt-get install libxml2-dev
㈢ 如何用雲伺服器(Windows Sever)搭建一台Minecraft PE服務
要在Windows Server雲伺服器上搭建一台Minecraft PE服務,可以按照以下步驟進行:
選擇服務端:
- Minecraft PE沒有官方伺服器端,因此需要選擇第三方服務端,如Genisys或ImagicalMine。這些服務端是獨立實現的,需要開發者自行設計實現游戲內的邏輯和功能。
安裝PHP7:
- 在Windows Server上安裝PHP7。這是因為所選擇的Minecraft PE服務端通常基於PHP運行。
配置服務端:
- 下載並解壓所選擇的Minecraft PE服務端文件到伺服器的指定目錄。
- 根據服務端文檔,配置必要的文件,如配置文件,設置游戲參數和埠號。
啟動服務:
- 通過命令行或服務端提供的啟動腳本,啟動Minecraft PE服務端。確保配置的埠已開放,並且伺服器防火牆允許該埠的流量通過。
安裝插件:
- 由於第三方服務端的功能可能不完善,用戶可以通過安裝插件來增強游戲體驗。這些插件可以從服務端社區或相關論壇下載。
- 學習PHP編寫自定義插件也是提升游戲體驗的一種方式,但需要一定的編程基礎。
測試和優化:
- 在搭建完成後,進行測試以確保伺服器穩定運行,並且玩家可以順利連接和進行游戲。
- 根據測試結果,調整伺服器配置和優化性能,如增加內存、優化網路設置等。
注意:由於Minecraft PE服務端的實現相對復雜,且不同服務端可能具有不同的配置要求和功能特性,因此在實際搭建過程中,建議詳細閱讀服務端文檔和社區指南,以獲得更具體的操作步驟和問題解決方法。