Upgrade vs update
Web technology is changing with each passing day, and updating and upgrading is one of the maintenance tasks. A program that is not updated (upgraded) for a long time, just like a building that has not been maintained for a long time, will accelerate aging and gradually lose functions until it becomes unusable. And we recently discovered that some friends are confused about the two concepts of "update" and "upgrade", and mistakenly mixed these two words when describing them. Today, let’s talk about the difference between "update" and "upgrade".
The two words update or upgrade have similarities. Although they are all from the low version to the high version, there are also obvious differences when you carefully understand them.
In the actual upgrade work, there are mainly two forms of version change goals:
- major version changes , for example: MySQL5.6->MySQL5.7, PHP5.6->PHP7.0
- minor version changes , for example: MySQL5.6.25-->MySQL5.6.30, PHP5.6.33->PHP5.6.37
The major version changes of the program are significant changes in function and architecture (qualitative changes), the upgrade process is complicated, and there is a risk of upgrade failure. The minor version changes of the program are updated content (quantitative changes) from the perspective of patch vulnerabilities. ), the upgrade process is relatively simple.
All in all, the major version change is " upgrade ", and the minor version change is " update ". To distinguish the difference between these two words, don’t forget to use the words accurately~
PHP version upgrade tutorial
In the actual use process, you will encounter the situation of upgrading the major version of PHP, such as: from PHP5.5->PHP5.6 or PHP5.6->PHP7.0, etc. For the LAMP environment we provide, the upgrade method is very simple.
Take PHP5.5->PHP5.6 as an example, the details are as follows:
- After connecting to the Linux server, execute the following commands in sequence:
//首先,禁用当前 PHP55 源
yum-config-manager --disable remi-php55
//然后,启用需升级 PHP56 源
yum-config-manager --enable remi-php56
//最后,升级更新
yum update -y
2. To ensure that the upgrade is successful, please check the upgraded PHP version
php -v
The above scheme is also applicable to PHP7.0->PHP7.2
If you want to know more about PHP installation and upgrade details, you can read our PHP Practice Guide .
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。