×

debian9安装php7

debian9安装php7(debian9安装nvm 拒绝连接)

admin admin 发表于2023-04-02 02:41:09 浏览60 评论0

抢沙发发表评论

本文目录一览:

linux怎么搭建php开发环境

一、安装Apache2.2.22

1、到官网下载

2、解压

tar -zxvf httpd-2.2.22.tar.gz

3、建立目标文件夹(注意以下所有操作都时在root用户下执行的)

mkdir /usr/local/apache2

也就是说等下安装的apache2要安装到这个文件夹里面

4、配置

回到原来解压之后产生的文件夹

./configure --prefix=/usr/local/apache2 --enable-module=shared

要加上后面的参数,否则无法使用php,-enable-module=shared表示Apache可以动态的加载模块

这一步,出现了很多问题:

第一个错误为:

checking for APR... no

configure: error: APR not found. Please read the documentation.

解决方法:

download the latest versions of both APR and APR-Util from Apache APR, unpack them into ./srclib/apr and ./srclib/apr-util (be sure the domain names do not have version numbers; for example, the APR distribution must be under ./srclib/apr/)-debian9安装php7

then do

./configure --with-included-apr

原文章地址:

另外一种解决方法为:

分别安装APR和APR-util,安装方法为:首先下载这两个文件,然后解压,进入解压后目录,然后把APR和APR-util分别安装到/usr/local/文件夹的apr和apr-util文件夹下。APR的具体安装方法为:-debian9安装php7

[root@localhost 52lamp]# tar -zxvf apr-1.4.2.tar.gz //unzip -o apr-1.4.2.zip

[root@localhost 52lamp]# cd apr-1.4.2

[root@localhost apr-1.4.2]# ./configure --prefix=/usr/local/apr

[root@localhost apr-1.4.2]# make

[root@localhost apr-1.4.2]# make install

安装Apr-util 在./confiure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr

其他步骤类似。

第二个错误为:no acceptable C compiler found in $Path

直接运行 yum install gcc,安装Gcc即可

第三个问题为:pcre-config for libpcre not found

解决方法就是 下载prce安装包,和APR类似,安装到/usr/local/pcre文件夹下面即可。PS:fedora下安装c++编译器g++的命令为:yum install gcc-c++ 。

5、编译

make

6、安装

make install

7、启动,重启和停止 ,先切换到安装完成后的目录/usr/local/apache2/bin

./apachectl -k start

./apachectl -k restart

./apachectl -k stop

8、配置文件(满足最基本的配置)

编辑 /usr/local/apache2/conf/httpd.conf 文件

找到:

AddType application/x-compress .Z

AddType application/x-gzip .gz .tgz

在后面添加:

AddType application/x-httpd-php .php(使Apcche支持PHP)

AddType application/x-httpd-php-source .php5

找到:

IfModule dir_module

DirectoryIndex index.html

/IfModule

添加:

IfModule dir_module

DirectoryIndex index.html index.php

/IfModule

找到:

#ServerName

修改为:

ServerName 127.0.0.1:80或者ServerName localhost:80

记得要去掉前面的“#”

9、测试

在浏览器里输入

如果出现It Works!说明成功。这是我的测试结果:O(∩_∩)O哈哈~

10、修改默认的Web站点目录

默认的目录为 "/usr/local/apache2/htdocs",修改apache的配置文件httpd.conf,比如在新建一个 /home/gyw/WebSite的目录作为apache的站点目录-debian9安装php7

找到DocumentRoot这一行修改为:DocumentRoot "/home/gyw/WebSite"

找到 Directory 这一行修改为:Directory "/home/gyw/WebSite"

测试:修改到文件夹出现错误:

“You don't have permission to access /index.html on this server.”

解决方法:

更改文件权限;chmod 755 index.html

打开apache配置文件httpd.conf,找到这么一段:

Directory /

Options FollowSymLinks

AllowOverride None

Order deny,allow

deny from all

Satisfy all

/Directory

测试结果如下:

二、安装PHP

1、 下载

2、解压

tar -zxvf php-5.3.16.tar.gz

3、建立目标文件夹

mkdir /usr/local/php

也就是说等下安装的php要安装到这个文件夹里面

4、配置

回到原来解压后的文件夹

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs

注意这里有一个-with-apxs2=/usr/local/apache/bin/apxs选项,其中apxs是在安装Apache时产生的,apxs是一个为Apache HTTP服务器编译和安装扩展模块的工具,使之可以用由mod_so提供的LoadModule指令在运行时加载到Apache服务器中。我的理解是通过这个工具把PHP模块动态加载到Apache中-debian9安装php7

出现错误:configure: error: xml2-config not found. Please check your libxml2 installation.

运行yum install libxml2,然后再运行yum install libxml2-devel安装完毕后,重新运行上面的./configure命令。

5、编译

make

6、测试编译

make test

7、安装

make install

8、配置文件

cp /usr/local/src/php-5.3.16/php.ini-development /usr/local/php/lib/php.ini

把原来位于源代码里面的php.ini-development拷贝到/usr/local/php/lib/php.ini下,并且重命名为php.ini

9.重启apache

10、测试

在apache的htdocs下建立一个php文件test.php,里面的内容如下:

?php

phpinfo();

?

然后在浏览器里输入

如果出现php的相关配置,成功,如果什么都没有输入,说明失败,重新以上步骤或者查找原因

如果决定在安装后改变配置选项,只需重复最后的三步configure, make, 以及 make install,然后需要重新启动 Apache 使新模块生效。Apache不需要重新编译。

测试结果如下图:

三、安装MySql

1、下载

到官网下载mysql-5.1.65.tar.gz(注意是源码包)

2、解压

tar -zxvf mysql-5.1.65.tar.gz

3、建立目标文件夹

mkdir /usr/local/mysql

也就是说等下安装的mysql要安装到这个文件夹里面

4、配置

./configure --prefix=/usr/local/mysql/

在./configure时出现错误:error: No curses/termcap library found

下载安装相应软件包

yum list|grep ncurses

yum -y install ncurses-devel

yum install ncurses-devel

5、编译

make

6、安装

make install

7、启动

MySQL服务并不会自动启动,还需要先初始化MySQL数据库,操作如下:

cd /usr/local/mysql/bin

sudo ./mysql_install_db --user=root

注意,这里最后的root是指可以操作数据库的用户,可以是当前用户,也可以新建用户,与linux上的root用户是两回事,可以自己取一个名字

./mysqld_safe --user=root 这条命令负责启动mysql服务的守护进程,此外最后的时必须的,因为希望守护进程在后台运行

这里的root就是刚才的那个

8、为根用户创建密码

./mysqladmin -u root password ‘123456’

如果root已经设置过密码,采用如下方法

./mysqladmin -u root password oldpass ‘123456’

9、测试

mysql -u root -p

会提示输入密码,就用刚才设置的密码

123456

如果出现mysql,说明连接成功了,下面通过命令 创建一个数据库、建一个表,增加一条记录,为后面的测试准备

mysql create database gywtest;

mysql use gywtest;

mysql create table student(id int(4) not null primary key auto_increment,stuname char(20));

mysql insert into student(stuname) values('Tom');

注意每条命令后面有个分号,如果上面的都成功,后面就可以用这个测试。

四、将PHP与MySql结合起来

1、重新配置PHP,改变配置选项,只需重复PHP安装时的最后的三步configure, make, 以及 make install,然后需要重新启动 Apache 使新模块生效,Apache不需要重新编译。-debian9安装php7

2、配置

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysqli=/usr/local/mysql/bin/mysql_config 注意mysql_config 的路径-debian9安装php7

3、编译 make

4、安装 make installe

5、测试 写一个页面test.php,放在apache的web目录下,测试上面用命令创建的数据库

?php

$mysqli=new mysqli();

$mysqli-connect('localhost','root','123456','gywtest');

// 创建查询

$sqlstr='select * from student';

//发送查询给MySql

$result=$mysqli-query($sqlstr);

while($row=$result-fetch_object())

{

$name=$row-stuname;

echo $name;

}

?

Fatal error: Class 'mysqli' not found in /home/lufangtao/Project/DB.php on line 3

解决方法:

/usr/local/php/bin/phpize 这里回车运行

出错:

Cannot find config.m4.

Make sure that you run './phpize' in the top level source directory of the module

解决方法:

PHP源码包文件夹下的EXT文件夹就是放置着目前版本的可用扩展,CD进去看看都有哪些你需要的?应该看到mysqli文件夹了吧~~~

在当前目录下执行phpize

[root@localhost mysqli]#/usr/local/php/bin/phpize

Configuring for:

PHP Api Version: 20090626

Zend Modeule Api No: 20090626

Zend Extension Api No: 220090626

Cannot find autoconf. Please check your autoconf installation and the

$PHP_AUTOCONF environment variable. Then, rerun this script.

解决方法:

yum install autoconf再次运行上面的命令即可。

[root@localhost mysqli]#./configure –prefix=/opt/mysqli –with-php-config=/opt/php/bin/php-config –with-mysqli=/opt/mysql/bin/mysql_config-debian9安装php7

[root@localhost mysqli]#make

[root@localhost mysqli]#make install

安装完成后会有提示扩展所在目录路径,如:

/opt/php/lib/php/extensions/no-debug-zts-20090626php

所需的mysqli.so便会在此目录下,接下来修改/opt/php/etc/下的php.ini文件,加入mysqli扩展,即加入如下一行:

extension=/opt/php/lib/php/extensions/no-debug-zts-20090626/mysqli.so

这里还是回出现错误:

参考博客

解决不用扩展连接MySQL的方法。

最终还是没有解决MySQLi连接的问题,但是可以使用MySQL数据库了,下面是测试程序

?php

$link=mysql_connect('localhost','root','123456');

if(!$link) echo "F!";

else echo "S!";

mysql_select_db("students") or die("Could not select database");

$query="SELECT * FROM student;";

$result=mysql_query($query) or die("Query failed");

print "table\n";

while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {

print "\ttr\n";

foreach ($line as $col_value) {

print "\t\ttd$col_value/td\n";

}

print "\t/tr\n"; }

print "/table\n";

/* 释放资源 */

mysql_free_result($result);

mysql_close();

?

~

debian安装教程 安装Debian步骤

1、在引导界面选择Graphical install(图形化安装),进入安装过程。

2、选择语言界面,选择中文。

3、区域选择,选择中国。

4、主机名,填写debian。

5、域名可不填,直接下一步。

6、设置root密码为root,超级管理员账户。

7、建立新用户,这个只是个昵称,不是登录时的用户名,可以根据自己喜好填。

8、接下来就是设置登录时的用户名了,设置时要多注意,并且一定要记住。

9、设置用户密码。

10、接下来该磁盘分区了,有空闲分区的话推荐使用安装程序进行自动分区,当然也可以手动分区。

11、自动分区的话如果是新手推荐“将所有文件放在同一个分区中”,有经验的就根据自己喜好调整。

12、手动分区的话一定要记住挂载/根目录,否则会报错。

13、Swap分区(交换分区)推荐大小为物理内存的两倍,比如实际内存为2G,swap给上4G就行。

14、完成调整后保存分区表即可。

15、需要注意的是需要记住挂载 根目录/ 的分区号,方便后面安装grub。

16、选择软件包进行安装,建议全不选,需要的后面会手动安装,在此时安装的桌面环境话会连接安全服务器更新内核,速度会非常慢。

17、安装完成后就是配置Grub了,如果不想用Grub替换MBR,就选手动输入。

18、然后输入前面配置的挂载根目录/的文件系统,比如前面用的是/sda1,这里就输入/dev/sda1。(不用特殊处理,直接忽略,按默认继续)

19、安装完成后,拔掉启动U盘,直接点继续。

20、直接按回车进入Debian,等系统加载完如果出现登录界面就说明启动成功了。

21、在login后输入root,password后输入设置的超级管理员密码,以超级管理员权限进入系统。

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 安装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进行编译安装-debian9安装php7

./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 文件,于是:-debian9安装php7

ln -s /usr/lib/x86_64-linux-gnu/libssl.so /usr/lib错误2:debian Please reinstall the libcurl distribution 解决:-debian9安装php7

# 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 解决:

在 下载 gmp源码包,接着 ./configure make make install编译 安装

make  make install

报错处理

Please reinstall the libcurl distributionaptitude search libcurl4

aptitude install libcurl4-gnutls-dev

Cannot find OpenSSL’

wget -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.-debian9安装php7

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

如何在linux下安装多个不同版本的PHP

Linux (测试环境 Ubuntu 12.04 Server X86_64)

1. 安装编译工具及所需类库

$ sudo apt-get install build-essential gcc g++ autoconf libjpeg62 libjpeg62-dev libpng12-0 libpng12-dev libfreetype6 libfreetype6-dev libxml2 libxml2-dev zlib1g zlib1g-dev bzip2 libbz2-dev openssl libssl-dev curl libcurl4-openssl-dev libpcre3 libpcre3-dev libevent-1.4-2 libevent-dev libmcrypt4 libmcrypt-dev mcrypt libltdl-dev libldap2-dev libsasl2-dev libmhash-dev libc-client2007e libc-client2007e-dev-debian9安装php7

2. 安装MySQL

$ sudo apt-get install mysql-server libmysqlclient-dev

3. 安装PHP

Linux下多版本PHP共存需要自己手工编译安装。

下载PHP源文件到/opt/src目录

$ mkdir /opt/src

$ cd /opt/src

$ wget -O php-5.2.17.tar.bz2

$ wget -O php-5.3.28.tar.bz2

$ wget -O php-5.4.29.tar.bz2

$ wget -O php-5.5.14.tar.bz2

创建PHP各版本安装目录

$ mkdir -p /opt/php/{5217,5328,5429,5514}

安装PHP 5.2.17

$ cd /opt/src

$ tar -xvjf php-5.2.17.tar.bz2

$ cd php-5.2.17

$ sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/libjpeg.so

$ sudo ln -s /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/libpng.so

$ sudo ln -s /usr/lib/x86_64-linux-gnu/libkrb5.so /usr/lib/libkrb5.so

$ wget -O debian_patches_disable_SSLv2_for_openssl_1_0_0.patch “;patch=debian_patches...”

$ patch -p1 debian_patches_disable_SSLv2_for_openssl_1_0_0.patch

$ ./configure --prefix=/opt/php/5217 --with-config-file-scan-dir=/opt/php/5217/etc/php.d --with-mysql --with-pdo-mysql --with-mysqli --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --enable-ftp --disable-debug --disable-ipv6 --disable-short-tags --enable-calendar --with-mime-magic --with-imap --with-imap-ssl --with-kerberos-debian9安装php7

$ make

$ sudo make install

$ cp php.ini-recommended /opt/php/5217/lib/php.ini

安装PHP 5.3.28

$ cd /opt/src

$ tar -xvjf php-5.3.28.tar.bz2

$ cd php-5.3.28

$ ./configure --prefix=/opt/php/5328 --with-config-file-scan-dir=/opt/php/5328/etc/php.d --with-mysql --with-pdo-mysql --with-mysqli --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --enable-ftp --disable-debug --disable-ipv6 --disable-short-tags --enable-calendar --with-imap --with-imap-ssl --with-kerberos-debian9安装php7

$ make

$ sudo make install

$ cp php.ini-development /opt/php/5328/lib/php.ini

安装PHP 5.4.29

$ cd /opt/src

$ tar -xvjf php-5.4.29.tar.bz2

$ cd php-5.4.29

$ ./configure --prefix=/opt/php/5429 --with-config-file-scan-dir=/opt/php/5429/etc/php.d --with-mysql --with-pdo-mysql --with-mysqli --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --enable-ftp --disable-debug --disable-ipv6 --disable-short-tags --enable-calendar --with-imap --with-imap-ssl --with-kerberos-debian9安装php7

$ make

$ sudo make install

$ cp php.ini-development /opt/php/5429/lib/php.ini

安装PHP 5.5.14

$ cd /opt/src

$ tar -xvjf php-5.5.14.tar.bz2

$ cd php-5.5.14

$ ./configure --prefix=/opt/php/5514 --with-config-file-scan-dir=/opt/php/5514/etc/php.d --with-mysql --with-pdo-mysql --with-mysqli --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --enable-ftp --disable-debug --disable-ipv6 --disable-short-tags --enable-calendar --with-imap --with-imap-ssl --with-kerberos-debian9安装php7

$ make

$ sudo make install

$ cp php.ini-development /opt/php/5514/lib/php.ini

4. 安装Apache

$ sudo apt-get install apache2

启用相应模块

$ a2enmod headers

$ a2enmod expires

$ a2enmod actions

$ a2enmod rewrite

5. 配置Apache

$ sudo vi /etc/apache2/httpd.conf

追加如下脚本映射和虚拟主机配置,原理同Windows的配置说明。

ServerName localhost

AddType application/x-httpd-php .php

ScriptAlias /php-5217/ "/opt/php/5217/bin/"

ScriptAlias /php-5328/ "/opt/php/5328/bin/"

ScriptAlias /php-5429/ "/opt/php/5429/bin/"

ScriptAlias /php-5514/ "/opt/php/5514/bin/"

Directory /var/www/sites

Options Indexes FollowSymLinks Includes ExecCGI

DirectoryIndex index.php index.html

AllowOverride All

Order allow,deny

Allow from all

/Directory

Directory /var/www/sites/5217

Action application/x-httpd-php "/php-5217/php-cgi"

/Directory

Directory /var/www/sites/5328

Action application/x-httpd-php "/php-5328/php-cgi"

/Directory

Directory /var/www/sites/5429

Action application/x-httpd-php "/php-5429/php-cgi"

/Directory

Directory /var/www/sites/5514

Action application/x-httpd-php "/php-5514/php-cgi"

/Directory

# Virtualhosts

VirtualHost *:80

ServerAdmin webmaster@php5217.local

DocumentRoot "/var/www/sites/5217/test.local"

ServerName php5217.local

ErrorLog "/var/log/apache2/php5217.local-error.log"

CustomLog "/var/log/apache2/php5217.local-access.log" common

/VirtualHost

VirtualHost *:80

ServerAdmin webmaster@php5328.local

DocumentRoot "/var/www/sites/5328/test.local"

ServerName php5328.local

ErrorLog "/var/log/apache2/php5328.local-error.log"

CustomLog "/var/log/apache2/php5328.local-access.log" common

/VirtualHost

VirtualHost *:80

ServerAdmin webmaster@php5429.local

DocumentRoot "/var/www/sites/5429/test.local"

ServerName php5429.local

ErrorLog "/var/log/apache2/php5429.local-error.log"

CustomLog "/var/log/apache2/php5429.local-access.log" common

/VirtualHost

VirtualHost *:80

ServerAdmin webmaster@php5514.local

DocumentRoot "/var/www/sites/5514/test.local"

ServerName php5514.local

ErrorLog "/var/log/apache2/php5514.local-error.log"

CustomLog "/var/log/apache2/php5514.local-access.log" common

/VirtualHost

保存配置后,创建各站点的DocumentRoot目录,再往每个目录放置一个phpinfo的测试文件,完成后重启Apache服务器并在本地hosts文件加入域名解析,现在就可以访问各站点来测试多版本PHP共存了。-debian9安装php7

好了,基本的多版本PHP共存解决方案已经完成,如果还需要添加其他的PHP类库支持,后续自己再调用对应php目录下的pecl, php_config等脚本编译安装就可以了。

debian 9 stretch安装docker

1.卸载历史docker

sudo apt-get remove docker docker-engine docker.io

2. 更新apt-get源

sudo apt-get update

3.安装软件包让apt支持HTTPS

sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common

4.添加docker官方GPG KEY

curl -fsSL (. /etc/os-release;echo"$ID")/gpg | sudo apt-key add -

5.指纹验证

sudo apt-key fingerprint 0EBFCD88

是否是:9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88

6.添加apt镜像仓库

x86_64 :

sudo add-apt-repository\"deb [arch=amd64] (. /etc/os-release;echo"$ID")\$(lsb_release -cs)\stable"

armhf :

echo"deb [arch=armhf] (. /etc/os-release;echo"$ID")\$(lsb_release -cs)stable"|\sudo tee /etc/apt/sources.list.d/docker.list-debian9安装php7

7.安装docker CE(Docker 从 17.03版本之后分为 CE(Community Edition) 和 EE(Enterprise Edition))

sudo apt-get update

sudo apt-get install docker-ce

在安装debian9时提示缺少固件文件ipw2200-bss.fw,该怎么弄啊,如果不弄他的话是没有WiFi的

debian7安装ipw2200无线网卡驱动的操作步骤如下:

1、登陆debian7的官方网站,点击“服务与支持”,在下载中心中,选择对应的型号或填写对应型号进行搜索,找到相对应的无线网卡驱动,按照提示下载;

2、点击任务栏处该图标,就会打开“驱动程序软件安装”窗口,此时会发现驱动程序正在安装;

3、接着在打开的无线网卡驱动程序安装界面中,点击“自动安装”按钮开始驱动程序的安装;

4、然后根据驱动程序安装向导直接点击“下一步”进行操作;

5、当Windows弹出“无法验证的驱动程序”窗口时,点击“始终安装驱动程序”项即可;

6、网卡驱动程序安装完成后,右击“计算机”,从弹出的菜单中选择“管理”项进入;

7、在打开的“计算机管理”窗口中,点击“设备管理器”项,即可查看到已成功安装的无线网卡设备。