# systemctl enable ntpd<\/span>\n<\/code><\/pre>\n<\/p>\n\u56db\u3001Linux\u4e0b\u7684\u8f6f\u4ef6\u5305\u7ba1\u74061\u3001\u4ec0\u4e48\u662f\u8f6f\u4ef6\u5305<\/p>\n
\u8fd9\u662f\u54ea\u4e9b\uff1f<\/p>\n
\u7531\u4ee5\u4e0a\u56fe\u89e3\u53ef\u77e5\uff0c\u8fd9\u4e2aPC.exe\u662fWindows\u4e2d\u7684\u8f6f\u4ef6\u5b89\u88c5\u5305\u3002<\/p>\n
\u6240\u8c13\u7684Linux\u8f6f\u4ef6\u5305\u5c31\u662fLinux\u4e0b\u8f6f\u4ef6\u7684\u5b89\u88c5\u7a0b\u5e8f<\/p>\n
2\u3001Linux\u4e0b\u8f6f\u4ef6\u7684\u5b89\u88c5\u65b9\u6cd5<\/p>\n
\u2460RPM\u8f6f\u4ef6\u5305\u5b89\u88c5=>\u8f6f\u4ef6\u540d\u79f0.rpm<\/p>\n
\u2461YUM\u5305\u7ba1\u7406\u5de5\u5177=>yuminstall\u8f6f\u4ef6\u540d\u79f0-y<\/p>\n
\u2462\u6e90\u7801\u5b89\u88c5=>\u4e0b\u8f7d\u8f6f\u4ef6\u7684\u6e90\u4ee3\u7801=>\u7f16\u8bd1=>\u5b89\u88c5\uff08\u6700\u9ebb\u70e6\u7684\uff0c\u800c\u4e14\u4e5f\u6700\u7a33\u5b9a\uff09<\/p>\n
3\u3001\u4e8c\u8865\u7801\u8f6f\u4ef6\u5305<\/p>\n
\u200b\u4e8c\u8865\u7801\u5305\uff0c\u4e5f\u5c31\u662f\u6e90\u7801\u5305\u7ecf\u8fc7\u6210\u529f\u7f16\u8bd1\u4ee5\u540e\u5f62\u6210\u7684\u5305\u3002<\/p>\n
\u200b\u4e8c\u8865\u7801\u5305\u662fLinux\u4e0b\u9ed8\u8ba4\u7684\u8f6f\u4ef6\u5b89\u88c5\u5305\uff0c\u76ee\u524d\u4e3b\u8981\u6709\u4ee5\u4e0b2\u5927\u4e3b\u6d41\u7684\u4e8c\u8865\u7801\u5305\u7ba1\u7406\u7cfb\u7edf\uff1a<\/p>\n
\u200bRPM\u662fRedHatPackageManager\uff08RedHat\u8f6f\u4ef6\u5305\u7ba1\u7406\u5de5\u5177\uff09\u7684\u7b80\u5199<\/p>\n
\u200b\u4f5c\u7528\uff1arpm\u7684\u4f5c\u7528\u7c7b\u4f3c\u4e8e\u8695\u8c46\u835a\uff0c\u534e\u4e3a\u5e94\u7528\u5e02\u573a\uff0cAppStore\uff0c\u4e3b\u8981\u4f5c\u7528\u662f\u5bf9linux\u670d\u52a1\u5668\u4e0a\u7684\u8f6f\u4ef6\u5305\u8fdb\u884c\u5bf9\u5e94\u7ba1\u7406\u64cd\u4f5c\uff0c\u7ba1\u7406\u5206\u4e3a\uff1a\u67e5\u8be2\u3001\u5378\u8f7d\u3001\u5b89\u88c5\/\u66f4\u65b0\u3002<\/p>\n
4\u3001\u83b7\u53d6*.rpm\u8f6f\u4ef6\u5305<\/p>\n
a.\u53bb\u5b98\u7f51\u53bb\u4e0b\u8f7d\uff08\uff09\uff1b<\/p>\n
b.\u4e0d\u4ecb\u610f\u8001\u7248\u672c\u7684\u8bddlinux\u7cfb\u7edf\u4e0b\u66f4\u65b0\u65f6\u95f4\u7684\u547d\u4ee4\u662f\u4ec0\u4e48<\/strong>\uff0c\u53ef\u4ee5\u4ece\u5149\u789f\uff08\u6216\u5219\u955c\u50cf\u6587\u4ef6\uff09\u4e2d\u8bfb\u53d6\uff1bCentOS7.6*.iso<\/p>\n5\u3001\u67e5\u8be2\u7cfb\u7edf\u4e2d\u5df2\u5b89\u88c5\u7684rpm\u8f6f\u4ef6<\/p>\n
\n
# rpm -qa |grep \u8981\u641c\u7d22\u7684\u8f6f\u4ef6\u540d\u79f0<\/span>\n\u9009\u9879\u8bf4\u660e\uff1a\n-<\/span>q \uff1aquery\uff0c\u67e5\u8be2\u64cd\u4f5c\n-<\/span>a \uff1aall\uff0c\u4ee3\u8868\u6240\u6709\n<\/code><\/pre>\n<\/p>\n\u6848\u4f8b1\uff1a\u67e5\u8be2\u8ba1\u7b97\u673a\u4e2d\u5df2\u5b89\u88c5\u7684rpm\u8f6f\u4ef6\u5305<\/p>\n
\n
# rpm -qa<\/span>\n<\/code><\/pre>\n<\/p>\n\u6848\u4f8b2\uff1a\u641c\u7d22\u8ba1\u7b97\u673a\u4e2d\u5df2\u5b89\u88c5\u7684firefox\u8f6f\u4ef6\u5305<\/p>\n
\n
# rpm -qa | grep firefox<\/span>\n<\/code><\/pre>\n<\/p>\n6\u3001\u5378\u8f7dCentOS\u7cfb\u7edf\u4e2d\u7684rpm\u8f6f\u4ef6\u5305<\/p>\n
\n
# rpm -e \u8f6f\u4ef6\u540d\u79f0 [\u9009\u9879]<\/span>\n\u9009\u9879\u8bf4\u660e\uff1a\n--<\/span>nodeps \uff1a\u5f3a\u5236\u5378\u8f7d\n<\/code><\/pre>\n<\/p>\n\u6848\u4f8b\uff1a\u628a\u7cfb\u7edf\u4e2d\u7684firefox\u6d4f\u89c8\u5668\u8fdb\u884c\u5378\u8f7d\u64cd\u4f5c<\/p>\n
\n
# rpm -qa |grep firefox<\/span>\nfirefox-<\/span>60.<\/span>2.<\/span>2-<\/span>1.<\/span>el7.<\/span>centos.<\/span>x86_64\n# rpm -e firefox-60.2.2-1.el7.centos.x86_64<\/span>\n<\/code><\/pre>\n<\/p>\n\u5378\u8f7d\u6210\u529f\u3002<\/p>\n
7\u3001rpm\u8f6f\u4ef6\u5305\u7684\u5b89\u88c5<\/p>\n
\u57fa\u672c\u53e5\u578b\uff1a<\/p>\n
\n
# rpm -ivh \u8f6f\u4ef6\u5305\u7684\u540d\u79f0.rpm<\/span>\n\u9009\u9879\u8bf4\u660e\uff1a\n-<\/span>i\uff1ainstall\uff0c\u5b89\u88c5\n-<\/span>v\uff1a\u663e\u793a\u8fdb\u5ea6\u6761\n-<\/span>h\uff1a\u8868\u793a\u4ee5\"#\"<\/span>\u5f62\u5f0f\u663e\u793a\u8fdb\u5ea6\u6761\n<\/code><\/pre>\n<\/p>\n8\u3001rpm\u8f6f\u4ef6\u5305\u7684\u83b7\u53d6\uff08\u5149\u789f\uff09<\/p>\n
\u7b2c\u4e00\u6b65\uff1a\u5728VMware\u865a\u62df\u673a\u4e2d\u52a0\u8f7dCentOS7.6\u7684\u5b89\u88c5\u5149\u789f<\/p>\n
\u7b2c\u4e8c\u6b65\uff1a\u4f7f\u7528#lsblk\uff08listblockdevices\uff09\u6216\u5219df-T\u67e5\u770b\u7403\u72b6\u8bbe\u5907\u7684\u4fe1\u606f<\/p>\n
\n
# lsblk<\/span>\n[root@localhost ~]<\/span># lsblk<\/span>\nNAME MAJ:MIN RM<\/span> SIZE RO TYPE<\/span> MOUNTPOINT\nsda 8:0 0 20G 0 disk\n\u251c\u2500sda1 8:1 0 1G 0 part \/<\/span>boot\n\u2514\u2500sda2 8:2 0 19G 0 part\n \u251c\u2500centos-<\/span>root 253:0 0 17G 0 lvm \/<\/span>\n \u2514\u2500centos-<\/span>swap 253:1 0 2G 0 lvm [SWAP]<\/span>\nsr0 11:0 1 4.<\/span>3G 0 rom \/<\/span>run\/<\/span>media\/<\/span>itheima\/<\/span>CentOS 7 x86_64\n\u7531\u4ee5\u4e0a\u56fe\u89e3\u53ef\u77e5\uff0c\/<\/span>dev\/<\/span>sr0\u4ee3\u8868\u5149\u9a71\u8bbe\u5907 => \u6302\u8f7d\u70b9 => \/<\/span>run\/<\/span>media\/<\/span>localhost\/<\/span>CentOS 7 x86_64\u6587\u4ef6\u5939\n\u6216\n# df -T<\/span>\n<\/code><\/pre>\n<\/p>\nLinux\u64cd\u4f5c\u7cfb\u7edf\u7684\u4e2d\u6240\u6709\u50a8\u5b58\u8bbe\u5907\u5fc5\u987b\u5148\u6302\u8f7d\u540e\u4f7f\u7528<\/p>\n
\u7b2c\u4e09\u6b65\uff1a\u4f7f\u7528cd\u547d\u4ee4\uff0c\u5207\u6362\u5230\u6302\u8f7d\u76ee\u5f55<\/p>\n
\n
# cd \/run\/media\/localhost\/CentOS 7 x86_64<\/span>\n<\/code><\/pre>\n<\/p>\n\u7b2c\u56db\u6b65\uff1a\u4f7f\u7528cd\u547d\u4ee4\uff0c\u5207\u6362\u5230Packages\u8f6f\u4ef6\u5305\u4e2d<\/p>\n
\n
# cd Packages<\/span>\n<\/code><\/pre>\n<\/p>\n\u7b2c\u4e94\u6b65\uff1a\u67e5\u8be2\u6211\u4eec\u8981\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305<\/p>\n
\n
# ls |grep firefox<\/span>\nfirefox-<\/span>60.<\/span>2.<\/span>2-<\/span>1.<\/span>el7.<\/span>centos.<\/span>x86_64.<\/span>rpm\n<\/code><\/pre>\n<\/p>\n\u7b2c\u516d\u6b65\uff1a\u4f7f\u7528rpm-ivh\u547d\u4ee4\u5b89\u88c5\u8f6f\u4ef6<\/p>\n
\n
# rpm -ivh firefox-60.2.2-1.el7.centos.x86_64.rpm<\/span>\n<\/code><\/pre>\n<\/p>\n\u8f93\u5165firefox+Tab\uff0c\u8ba9\u5176\u624b\u52a8\u8865\u5168<\/p>\n
9\u3001rpm\u8f6f\u4ef6\u5305\u7684\u5347\u7ea7<\/p>\n
\u57fa\u672c\u53e5\u578b\uff1a<\/p>\n
\n
# rpm -Uvh \u5347\u7ea7\u540e\u7684\u8f6f\u4ef6\u5305\u540d\u79f0.rpm<\/span>\n\u9009\u9879\u8bf4\u660e\uff1a\n-<\/span>U \uff1aUpdate\uff0c\u66f4\u65b0\u64cd\u4f5c\n<\/code><\/pre>\n<\/p>\n\u6848\u4f8b\uff1a\u4f7f\u7528rpm-Uvh\u5bf9firefox-60.2.2\u7248\u672c\u8fdb\u884c\u5347\u7ea7<\/p>\n
\n
# rpm -Uvh firefox-68.4.1-1.el7.centos.x86_64.rpm<\/span>\n<\/code><\/pre>\n<\/p>\n10\u3001rpm\u6269\u5145\u2606\u4f9d\u8d56\u5173\u7cfb<\/p>\n
\u4e00\u4e2a\u8f6f\u4ef6\u5fc5\u987b\u5148\u6709\u5176\u4ed6\u8f6f\u4ef6\u80fd\u591f\u8fd0\u884c\uff0c\u6bd4\u5982\u4e4b\u524dxmind\u542f\u52a8\u8fc7\u7a0b\u4e2d\u63d0\u793a\u7684\u7f3a\u4e4fDLL\uff0c\u79f0\u4e4b\u4e3a\u4f9d\u8d56<\/p>\n
WAMP\uff08Windows+Apache+MySQL+PHP\uff09\u5b89\u88c5\u524d\u5fc5\u987b\u5148\u5b89\u88c5VC++2014x86_64\uff0c\u8fd9\u4e9b\u60c5\u51b5\u5c31\u79f0\u4e4b\u4e3a\u6709\u4f9d\u8d56\u5173\u7cfb\u3002<\/p>\n
60.8.0\u7684firefox\u53ef\u4ee5\u66f4\u65b0\u6210\u529f<\/p>\n
\u4e0b\u8fb9\u6211\u4eec\u5c1d\u8bd5\u66f4\u65b0\u523068.4.1\u7684\u7248\u672c<\/p>\n
\n
\u7528\u6cd5\uff1arpm -<\/span>Uvh \u8f6f\u4ef6\u5305\u540d\u79f0\n# rpm -Uvh firefox-68.4.1-1.el7.centos.x86_64.rpm<\/span>\n\u4f7f\u7528rpm\u547d\u4ee4\uff0c\u5b89\u88c568.<\/span>4.<\/span>1\u7248\u672c\u7684\u8f6f\u4ef6\u5305\n<\/code><\/pre>\n<\/p>\n\u9519\u8bef\u63d0\u793a\uff1a<\/p>\n
error\uff1aFaileddependencies:<\/p>\n
\u63d0\u793a\u5b89\u88c568\u7248\u672c\u7684firefox\u987b\u8981\u4f9d\u8d56nspr4.21\u7684\u7248\u672c\uff0cnss\u76843.44\u7684\u7248\u672c\uff0c\u8fd9\u5c31\u662f\u6211\u4eec\u8bf4\u7684\u4f9d\u8d56\u5173\u7cfb\u3002<\/p>\n
\u4e3a\u4e86\u89e3\u51b3\u4f9d\u8d56\u5173\u7cfb\u7684\u95ee\u9898\uff0c\u6709\u53e6\u5916\u4e00\u4e2a\u7ba1\u7406\u5de5\u5177\u79f0\u4f5cyumlinux\u8bfe\u7a0b\uff0c\u524d\u9762\u6211\u4eec\u4f1a\u8c08\u5230\u3002<\/p>\n
<\/p>\n
\n
A\u8f6f\u4ef6\nA\u8f6f\u4ef6 => \u9700\u8981\u4f9d\u8d56B\u8f6f\u4ef6\nB\u8f6f\u4ef6 => \u9700\u8981\u4f9d\u8d56C\u8f6f\u4ef6\nC\u8f6f\u4ef6\n<\/code><\/pre>\n<\/p>\n\u4f9d\u8d56\u5173\u7cfb\u7684\u89e3\u51b3\uff1a\u4f7f\u7528YUM\u8f6f\u4ef6\u5305\u7ba1\u7406\u5de5\u5177\u5bf9\u5176\u8fdb\u884c\u5b89\u88c5\uff08\u624b\u52a8\u89e3\u51b3\u4f9d\u8d56\u5173\u7cfb\uff09<\/p>\n
\n
# yum install firefox -y<\/span>\n<\/code><\/pre>\n<\/p>\n\u2606\u67e5\u770b\u6587\u4ef6\u6240\u5c5e\u7684\u5305\u540d<\/p>\n
\u57fa\u672c\u53e5\u578b\uff1af=file<\/p>\n
\n
# rpm -qf \u6587\u4ef6\u540d\u79f0<\/span>\n<\/code><\/pre>\n<\/p>\n