1、安装apache

  1.1 安装apache

  1. [root@nmserver-7 ~]# yum install httpd httpd-devel

  1.2 启动apache服务

  1. [root@nmserver-7 ~]# systemctl start httpd

  1.3 设置httpd服务开机启动

  1. [root@nmserver-7 ~]# systemctl enable httpd
  2. Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.

  1.4 查看服务状态

[root@nmserver-7 ~]# systemctl status httpd
  1. httpd.service - The Apache HTTP Server
  2. Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  3. Active: active (running) since 2017-07-21 17:21:37 CST; 6min ago
  4. Docs: man:httpd(8)
  5. man:apachectl(8)
  6. Main PID: 2449 (httpd)
  7. Status: "Total requests: 11; Current requests/sec: 0; Current traffic: 0 B/sec"
  8. CGroup: /system.slice/httpd.service
  9. ├─2449 /usr/sbin/httpd -DFOREGROUND
  10. ├─2450 /usr/sbin/httpd -DFOREGROUND
  11. ├─2451 /usr/sbin/httpd -DFOREGROUND
  12. ├─2452 /usr/sbin/httpd -DFOREGROUND
  13. ├─2453 /usr/sbin/httpd -DFOREGROUND
  14. ├─2454 /usr/sbin/httpd -DFOREGROUND
  15. ├─2493 /usr/sbin/httpd -DFOREGROUND
  16. ├─2494 /usr/sbin/httpd -DFOREGROUND
  17. └─2495 /usr/sbin/httpd -DFOREGROUND
  18.  
  19. 7 21 17:21:35 nmserver-7.test.com systemd[1]: Starting The Apache HTTP Server...
  20. 7 21 17:21:36 nmserver-7.test.com httpd[2449]: AH00558: httpd: Could not reliably determine the server's fully q...ssage
  21. 7月 21 17:21:37 nmserver-7.test.com systemd[1]: Started The Apache HTTP Server.
  22. Hint: Some lines were ellipsized, use -l to show in full.

  1.5 防火墙设置开启80端口

  1. [root@nmserver-7 ~]# firewall-cmd --permanent --zone=public --add-service=http
  2. success
  3. [root@nmserver-7 ~]# firewall-cmd --permanent --zone=public --add-service=https
  4. success
  5. [root@nmserver-7 ~]# firewall-cmd --reload
  6. success

  这里可能会提示错误

  1. FirewallD is not running
  2.  

1.通过systemctl status firewalld查看firewalld状态,发现当前是dead状态,即防火墙未开启。

2.通过systemctl start firewalld开启防火墙,没有任何提示即开启成功。

3.再次通过systemctl status firewalld查看firewalld状态,显示running即已开启了。

4.如果要关闭防火墙设置,可能通过systemctl stop firewalld这条指令来关闭该功能。

5.END

1.6确认80端口监听中

 
  1. [root@nmserver-7 ~]# netstat -tulp
  2. Active Internet connections (only servers)
  3. Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
  4. tcp 0 0 0.0.0.0:ssh 0.0.0.0:* LISTEN 1084/sshd
  5. tcp 0 0 localhost:smtp 0.0.0.0:* LISTEN 1486/master
  6. tcp6 0 0 [::]:ssh [::]:* LISTEN 1084/sshd
  7. tcp6 0 0 localhost:smtp [::]:* LISTEN 1486/master
  8. tcp6 0 0 [::]:http [::]:* LISTEN 2449/httpd
  9. udp 0 0 localhost:323 0.0.0.0:* 592/chronyd
  10. udp6 0 0 localhost:323 [::]:* 592/chronyd
 

这时候可能你的服务器还是不能访问

这是因为阿里云的安全策略还没有添加

重新配置安全组公网规则

原因分析:安全组默认没有放行网站使用的端口(如 80 端口)。您需要自行放行该接口。

解决方法:

  1. 登录ECS 控制台,找到该实例。
  2. 单击实例 ID,进入详情页,再单击本实例安全组 > 配置规则 >添加安全组规则。
  3. 根据网站使用的端口配置新的安全组规则,放行网站使用的端口,最后单击确定。

1.8 查服务器IP

 
  1. [root@nmserver-7 ~]# ip addr
  2. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
  3. link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  4. inet 127.0.0.1/8 scope host lo
  5. valid_lft forever preferred_lft forever
  6. inet6 ::1/128 scope host
  7. valid_lft forever preferred_lft forever
  8. 2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
  9. link/ether 00:0c:29:56:bc:cf brd ff:ff:ff:ff:ff:ff
  10. inet 192.168.8.9/24 brd 192.168.8.255 scope global ens33
  11. valid_lft forever preferred_lft forever
  12. inet6 fe80::20c:29ff:fe56:bccf/64 scope link
  13. valid_lft forever preferred_lft forever
  14. 3: bridge0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN qlen 1000
  15. link/ether ea:89:d5:c7:32:73 brd ff:ff:ff:ff:ff:ff
 

 1.9 浏览器登陆

当你看到这个的时候,Apache已经安装完成了

2、安装mysql

  2.1安装mysql

  1. [root@nmserver-7 ~]# yum install mariadb mariadb-server mariadb-libs mariadb-devel
  1. root@nmserver-7 ~]# rpm -qa |grep maria
  2. mariadb-libs-5.5.52-1.el7.i686
  3. mariadb-5.5.52-1.el7.i686
  4. mariadb-server-5.5.52-1.el7.i686
  5. mariadb-devel-5.5.52-1.el7.i686

  2.2 开启mysql服务,并设置开机启动,检查mysql状态

 
  1. [root@nmserver-7 ~]# systemctl start mariadb
  2. [root@nmserver-7 ~]# systemctl enable mariadb
  3. Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.
  4. [root@nmserver-7 ~]# systemctl status mariadb
  5. mariadb.service - MariaDB database server
  6. Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
  7. Active: active (running) since 2017-07-22 21:19:20 CST; 21s ago
  8. Main PID: 9603 (mysqld_safe)
  9. CGroup: /system.slice/mariadb.service
  10. ├─9603 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
  11. └─9760 /usr/libexec/mysqld --basedir=/usr --datadir=/v...
  12.  
  13. 7 22 21:19:15 nmserver-7.test.com mariadb-prepare-db-dir[9524]: ...
  14. 7 22 21:19:15 nmserver-7.test.com mariadb-prepare-db-dir[9524]: ...
  15. 7 22 21:19:15 nmserver-7.test.com mariadb-prepare-db-dir[9524]: ...
  16. 7 22 21:19:15 nmserver-7.test.com mariadb-prepare-db-dir[9524]: ...
  17. 7 22 21:19:15 nmserver-7.test.com mariadb-prepare-db-dir[9524]: ...
  18. 7 22 21:19:15 nmserver-7.test.com mariadb-prepare-db-dir[9524]: ...
  19. 7 22 21:19:15 nmserver-7.test.com mariadb-prepare-db-dir[9524]: ...
  20. 7 22 21:19:16 nmserver-7.test.com mysqld_safe[9603]: 170722 21...
  21. 7 22 21:19:16 nmserver-7.test.com mysqld_safe[9603]: 170722 21...
  22. 7 22 21:19:20 nmserver-7.test.com systemd[1]: Started MariaDB ...
 
 
  1. [root@nmserver-7 ~]# netstat -tulp
  2. Active Internet connections (only servers)
  3. Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
  4. tcp 0 0 0.0.0.0:ssh 0.0.0.0:* LISTEN 1084/sshd
  5. tcp 0 0 0.0.0.0:mysql 0.0.0.0:* LISTEN 9760/mysqld
  6. tcp6 0 0 [::]:ssh [::]:* LISTEN 1084/sshd
  7. tcp6 0 0 [::]:http [::]:* LISTEN 2449/httpd
  8. udp 0 0 localhost:323 0.0.0.0:* 592/chronyd
  9. udp6 0 0 localhost:323 [::]:* 592/chronyd
 

  2.3 数据库安全设置

 
  1. [root@nmserver-7 ~]# mysql_secure_installation
  2.  
  3. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
  4. SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
  5.  
  6. In order to log into MariaDB to secure it, we'll need the current
  7. password for the root user. If you've just installed MariaDB, and
  8. you haven't set the root password yet, the password will be blank,
  9. so you should just press enter here.
  10.  
  11. Enter current password for root (enter for none): //输入root的密码,首次安装直接按回车即可
  12. OK, successfully used password, moving on...
  13.  
  14. Setting the root password ensures that nobody can log into the MariaDB
  15. root user without the proper authorisation.
  16.  
  17. Set root password? [Y/n] y
  18. New password:
  19. Re-enter new password:
  20. Password updated successfully!
  21. Reloading privilege tables..
  22. ... Success!
  23.  
  24. By default, a MariaDB installation has an anonymous user, allowing anyone
  25. to log into MariaDB without having to have a user account created for
  26. them. This is intended only for testing, and to make the installation
  27. go a bit smoother. You should remove them before moving into a
  28. production environment.
  29.  
  30. Remove anonymous users? [Y/n] y
  31. ... Success!
  32.  
  33. Normally, root should only be allowed to connect from 'localhost'. This
  34. ensures that someone cannot guess at the root password from the network.
  35.  
  36. Disallow root login remotely? [Y/n] n
  37. ... skipping.
  38.  
  39. By default, MariaDB comes with a database named 'test' that anyone can
  40. access. This is also intended only for testing, and should be removed
  41. before moving into a production environment.
  42.  
  43. Remove test database and access to it? [Y/n] y
  44. - Dropping test database...
  45. ... Success!
  46. - Removing privileges on test database...
  47. ... Success!
  48.  
  49. Reloading the privilege tables will ensure that all changes made so far
  50. will take effect immediately.
  51.  
  52. Reload privilege tables now? [Y/n] y
  53. ... Success!
  54.  
  55. Cleaning up...
  56.  
  57. All done! If you've completed all of the above steps, your MariaDB
  58. installation should now be secure.
  59.  
  60. Thanks for using MariaDB!
 

  2.4 登陆数据库测试

 
  1. [root@nmserver-7 ~]# mysql -uroot -p
  2. Enter password:
  3. Welcome to the MariaDB monitor. Commands end with ; or \g.
  4. Your MariaDB connection id is 11
  5. Server version: 5.5.52-MariaDB MariaDB Server
  6.  
  7. Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
  8.  
  9. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  10.  
  11. MariaDB [(none)]> show databases;
  12. +--------------------+
  13. | Database |
  14. +--------------------+
  15. | information_schema |
  16. | mysql |
  17. | performance_schema |
  18. +--------------------+
  19. 3 rows in set (0.02 sec)
  20.  
  21. MariaDB [(none)]>
 

3、安装PHP

/**这里安装的是PHP5.4.16 如果要安装php7.1请绕道文末**/

  3.1 安装php

  1. [root@nmserver-7 ~]# yum -y install php
  1. [root@nmserver-7 ~]# rpm -ql php
  2. /etc/httpd/conf.d/php.conf
  3. /etc/httpd/conf.modules.d/10-php.conf
  4. /usr/lib/httpd/modules/libphp5.so
  5. /usr/share/httpd/icons/php.gif
  6. /var/lib/php/session

  3.2 将php与mysql关联起来

 
  1. [root@nmserver-7 ~]# yum install php-mysql
  2. [root@nmserver-7 ~]# rpm -ql php-mysql
  3. /etc/php.d/mysql.ini
  4. /etc/php.d/mysqli.ini
  5. /etc/php.d/pdo_mysql.ini
  6. /usr/lib/php/modules/mysql.so
  7. /usr/lib/php/modules/mysqli.so
  8. /usr/lib/php/modules/pdo_mysql.so
 

  3.3 安装常用PHP模块

  1. [root@nmserver-7 ~]# yum install -y php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap curl curl-devel php-bcmath

4 测试PHP

 
  1. [root@nmserver-7 ~]# cd  /var/www/html/
    [root@nmserver-7 html]# ls
    [root@nmserver-7 html]# pwd
    /var/www/html
    [root@nmserver-7 html]# vi info.php
  2.  
  3. <?php
            phpinfo();
    ?>
    ~                                                                                        
    ~                                                                                        
    ~                                                                                        
    ~                                                                                        
    ~                                                                                        
    ~                                                                                        
    ~                                                                                        
    ~       
  4. :wq
 

  3.5重启apache服务器

  1. [root@nmserver-7 html]# systemctl restart httpd

  3.6测试PHP

  在自己电脑浏览器输入ip/info.php,你可以看到已经安装的模块;

4 安装php7.1

如果你已经安装过老版本

//卸载老版本

-y remove php*

//设置安装源

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

//查看

yum search php71w

所有的插件如下

  1. mod_php71w.x86_64 : PHP module for the Apache HTTP Server
  2. php71w-bcmath.x86_64 : A module for PHP applications for using the bcmath library
  3. php71w-cli.x86_64 : Command-line interface for PHP
  4. php71w-common.x86_64 : Common files for PHP
  5. php71w-dba.x86_64 : A database abstraction layer module for PHP applications
  6. php71w-devel.x86_64 : Files needed for building PHP extensions
  7. php71w-embedded.x86_64 : PHP library for embedding in applications
  8. php71w-enchant.x86_64 : Enchant spelling extension for PHP applications
  9. php71w-fpm.x86_64 : PHP FastCGI Process Manager
  10. php71w-gd.x86_64 : A module for PHP applications for using the gd graphics library
  11. php71w-imap.x86_64 : A module for PHP applications that use IMAP
  12. php71w-interbase.x86_64 : A module for PHP applications that use Interbase/Firebird databases
  13. php71w-intl.x86_64 : Internationalization extension for PHP applications
  14. php71w-ldap.x86_64 : A module for PHP applications that use LDAP
  15. php71w-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling
  16. php71w-mcrypt.x86_64 : Standard PHP module provides mcrypt library support
  17. php71w-mysql.x86_64 : A module for PHP applications that use MySQL databases
  18. php71w-mysqlnd.x86_64 : A module for PHP applications that use MySQL databases
  19. php71w-odbc.x86_64 : A module for PHP applications that use ODBC databases
  20. php71w-opcache.x86_64 : An opcode cache Zend extension
  21. php71w-pdo.x86_64 : A database access abstraction module for PHP applications
  22. php71w-pdo_dblib.x86_64 : MSSQL database module for PHP
  23. php71w-pear.noarch : PHP Extension and Application Repository framework
  24. php71w-pecl-apcu.x86_64 : APCu - APC User Cache
  25. php71w-pecl-apcu-devel.x86_64 : APCu developer files (header)
  26. php71w-pecl-geoip.x86_64 : Extension to map IP addresses to geographic places
  27. php71w-pecl-igbinary.x86_64 : Replacement for the standard PHP serializer
  28. php71w-pecl-igbinary-devel.x86_64 : Igbinary developer files (header)
  29. php71w-pecl-imagick.x86_64 : Provides a wrapper to the ImageMagick library
  30. php71w-pecl-imagick-devel.x86_64 : Imagick developer files (header)
  31. php71w-pecl-libsodium.x86_64 : Wrapper for the Sodium cryptographic library
  32. php71w-pecl-memcached.x86_64 : Extension to work with the Memcached caching daemon
  33. php71w-pecl-mongodb.x86_64 : PECL package MongoDB driver
  34. php71w-pecl-redis.x86_64 : Extension for communicating with the Redis key-value store
  35. php71w-pecl-xdebug.x86_64 : PECL package for debugging PHP scripts
  36. php71w-pgsql.x86_64 : A PostgreSQL database module for PHP
  37. php71w-phpdbg.x86_64 : Interactive PHP debugger
  38. php71w-process.x86_64 : Modules for PHP script using system process interfaces
  39. php71w-pspell.x86_64 : A module for PHP applications for using pspell interfaces
  40. php71w-recode.x86_64 : A module for PHP applications for using the recode library
  41. php71w-snmp.x86_64 : A module for PHP applications that query SNMP-managed devices
  42. php71w-soap.x86_64 : A module for PHP applications that use the SOAP protocol
  43. php71w-tidy.x86_64 : Standard PHP module provides tidy library support
  44. php71w-xml.x86_64 : A module for PHP applications which use XML
  45. php71w-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC protocol

//安装php以及扩展

//可以根据自己的需求选择

yum install php71w php71w-fpm php71w-cli php71w-common php71w-devel php71w-gd php71w-pdo php71w-mysql php71w-mbstring php71w-bcmath

//开启服务

service php-fpm start

//设置开机启动

systemctl enable php-fpm.service

//检查开机自启动是否设置成功

systemctl list-dependencies | grep php-fpm

ps -ef | grep php-fpm

//上面安装最基本的扩展包如果还想使用其他扩展包自己手动安装扩展命令

yum search php71w    #查看所有包命令

yum install php71w php71w-pdo     #完整命令,php71w-pdo 为自己想要安装的包

测试PHP

 
  1. [root@nmserver-7 ~]# cd  /var/www/html/
    [root@nmserver-7 html]# ls
    [root@nmserver-7 html]# pwd
    /var/www/html
    [root@nmserver-7 html]# vi info.php
  2.  
  3. <?php
            phpinfo();
    ?>
    ~                                                                                        
    ~                                                                                        
    ~                                                                                        
    ~                                                                                        
    ~                                                                                        
    ~                                                                                        
    ~                                                                                        
    ~       
  4. :wq

//重启Apache

  1. systemctl restart httpd

4、设置虚拟主机

  4.1 修改apache默认的网站根目录

  apache配置文件路径:/etc/httpd/conf/httpd.conf

  DocumentRoot "/var/www/html"  修改为 DocumentRoot "/var/www"

  

  

  4.2 添加站点

  1. <VirtualHost *:80>
  2. DocumentRoot "/var/www/abc"
  3. ServerName www.abc.com
  4. ServerAlias abc.com
  5. <Directory "/var/www/abc">
  6. Options FollowSymLinks ExecCGI
  7. AllowOverride All
  8. Order allow,deny
  9. Allow from all
  10. Require all granted
  11. </Directory>
  12. </VirtualHost>
  13.  
  14. <VirtualHost *:80>
  15. DocumentRoot "/var/www/lang"
  16. ServerName lang.abc.com
  17. ServerAlias lang.abc.com
  18. <Directory "/var/www/lang">
  19. Options FollowSymLinks ExecCGI
  20. AllowOverride All
  21. Order allow,deny
  22. Allow from all
  23. Require all granted
  24. </Directory>
  25. </VirtualHost>

  

  //重启Apache

  1. systemctl restart httpd
  2.  

ECS配置lamp环境的更多相关文章

  1. windows下配置lamp环境(5)---配置MySQL5.6

    开始配置mysql 1.创建配置文件my.ini   1.进入C:\wamp\MySQL   2.把my-default.ini 另存一份:my.ini   3.开始编辑mysql的配置文件,打开my ...

  2. windows下配置lamp环境(3)---配置PHP5.4

    下面配置php Php文件夹里有两个php.ini-*文件,随便修改一个,去掉后缀,变成php.ini (如图) 打开php.ini ,添加php扩展目录723行左右(其实放哪都无所谓,只不过php. ...

  3. windows下配置lamp环境(0)---软件获取

    工作快一年了,还没有怎么配置过服务器环境,经常使用集成套件wampserver,为了复习配置wamp服务器 特意在虚拟机中测试安装步骤如下. 安装前步骤:下载软件.软件下载地址如下: 1.apache ...

  4. windows下配置lamp环境(2)---配置Apache服务器2.2.25

    配置Apache 配置Apache时,先要找到安装目录中的主配置文httpd.conf,使用文本编辑器打开,最好不要使用windows自带的编辑器,可以使用NotePad++, vim,或者subli ...

  5. windows下配置lamp环境(1)---安装Apache服务器2.2.25

    window下lamp成为wamp; 安装wamp环境的第一步是安装Apache服务器.下面开始安装步骤图文并茂. 一.双击安装包点“next”进行下一步,然后同意协议(这张图没有截):

  6. linux下lamp.sh一键配置lamp环境流程

    linux下lamp.sh一键配置lamp环境流程 一.总结 一句话总结: 2.将网站从github上clone到/data/www/网站域名/ 3.更改网站目录权限:chown -R apache: ...

  7. CentOS 7 yum方式配置LAMP环境

    环境:CentOS 7 最小化安装 采用Putty连接 方法:采用YUM安装方法 目的:搭建Apache+Mysql+PHP环境 1,安装Apache yum install httpd //默认情况 ...

  8. centos7 配置lamp 环境

    搭建版本 版本组合 php5.6+apache/2.4.6(centos7)+mysql5.7.24 因为新系统不能确认哪些指令已经搭建  所以安装前需要确认下是否拥有 检测是否已经安装过Vim rp ...

  9. 【转】CentOS7 yum方式配置LAMP环境

    采用Yum方式搭建: Apache+Mysql+PHP环境 原文地址: http://www.cnblogs.com/zutbaz/p/4420791.html 1.安装Apache yum inst ...

随机推荐

  1. OpenCV遍历彩色图像、灰度图像的像素值方法

    https://blog.csdn.net/mooneve/article/details/53001677 应用:将彩色图像转为灰度图像输出 方法一 使用ptr函数和指针 (高效) void mai ...

  2. 吴恩达课后作业学习1-week3-homework-one-hidden-layer

    参考:https://blog.csdn.net/u013733326/article/details/79702148 希望大家直接到上面的网址去查看代码,下面是本人的笔记 建立一个带有隐藏层的神经 ...

  3. P4550 收集邮票-洛谷luogu

    传送门 题目描述 有n种不同的邮票,皮皮想收集所有种类的邮票.唯一的收集方法是到同学凡凡那里购买,每次只能买一张,并且买到的邮票究竟是n种邮票中的哪一种是等概率的,概率均为1/n.但是由于凡凡也很喜欢 ...

  4. Java的错误类型

    程序的错误分为:编译期语法错误.运行期异常错误和运行期逻辑错误 (1)编译期语法错误可以借助Eclipse的帮助方便地定位错误,并进行修改 如: (2)运行期异常,即 没有语法错误,编译可以通过,但运 ...

  5. Generative Adversarial Nets[EBGAN]

    0. 背景 Junbo Zhao等人提出的"基于能量的GAN"网络,其将判别器视为一个能量函数而不需要明显的概率解释,该函数可以是一个可训练的损失函数.能量函数是将靠近真实数据流形 ...

  6. C# Oracle 时间字符串转时间类型

    C# 字符串转时间类型 yyyy-MM-dd HH:mm:ss  yyyy-MM-dd hh:mm:ss d 月中的某一天.一位数的日期没有前导零. dd 月中的某一天.一位数的日期有一个前导零. d ...

  7. LDAP2-创建OU创建用户

    创建OU创建用户 1.创建OU 选择Organisational unit 组织单元 输入OU名称 提交信息 结果创建成功 2.创建员工 选择ou选择新建子条目 选择默认模板 选择inetorgper ...

  8. [C# ASP.NET]如何让IIS Express支持外部(局域网)连接

    声明:本文为www.cnc6.cn原创,转载时请注明出处,谢谢! 一.搭建环境: 1.系统:Win10 1809 2.IDE:Visual Studio 2017 3.Framework: 4.6.1 ...

  9. Google 宣布在 4 月 1 日关闭站内搜索

    今春,Google 计划终止又一项产品,它就是“站内搜索”(Site Search)功能.这项产品主要出售给 web 出版商,让它们可以在自家网站内运用业内领先的搜索技术.虽然该公司并未公开宣布此事, ...

  10. 初次接触CSS变量

    本文的目的主要是展示CSS变量是如何工作的.随着Web应用程序变得越来越大,CSS变得越来越大,越来越多,而且很多时候都很乱,在良好的上下文中使用CSS变量,为您提供重用和轻松更改重复出现的CSS属性 ...