当Fedora安装多个PHP版本的时候,默认的php命令会使用/usr/bin/php。cd /usr/bin/ ll php*如果不想改变命令名字,可以直接把别的版本的可执行文件覆盖/usr/bin/php这个文件,例如:mv php php.bak cp /opt/remi/php74/root/usr/bin/php php
目前Fedora 37软件中支持的PHP稳定版本为PHP 8.1版本。可以通过运行dnf命令来确认:dnf info php-fpm。PHP 8安装要从Fedora软件仓库安装默认的PHP版本,请使用下面的命令:sudo dnf -y install php-cli php-fpm php-gd php-curl php-mysqlnd php-zip php-xml php-mbstring php-bcmath安装完,查看PHP版本号:php -v。PHP 7.4安装由于官方Fedora软件仓库只提供PHP 8,所以必须添加另一个存储库才能安装旧版本的PHP。这个仓库被称为REMI仓库。将REMI仓库添加到Fedora 37系统:sudo dnf -y install https://rpms.remirepo.net/fedora/remi-release-37.rpmREMI仓库中有一些常见的依赖项,需要启用:sudo dnf config-manager --set-enabled remi sudo dnf module reset php开始安装PHP 7.4:sudo
MongoDB官方提供了512M的免费云数据库:MongoDB Altas,用来学习啥的是够用了。优点:免费/高可用集群/随时随地可以访问/MongoDB官方提供。注册登录首先是注册一个账号,MongoDB官网:https://www.mongodb.com/pricing,进入后选择 Shared 下面的 Try for Free。创建连接账户连接账户有两种方式,一种是用户名和密码,一种是证书。这里选择比较简单的连接方式,就是用户名和密码了。环境配置有两种方式,一种是本地环境,一种是云环境。这里选择第一种本地环境,并且开放所有的IP进入白名单,即IP地址填写0.0.0.0。测试操作点击Add Data -> Create Database on Atlas,创建数据库和集合。创建成功后,可以在里面插入数据测试。测试连接切换到Overview,点击 Connect 会出现几种连接MongoDB的方式:Connect to your application,表示使用应用代码连接,在项目开发中,需要选择这种方式连接MongoDBCompass,表示用客户端工具连接MongoDBShe
安装Typora中文官网:https://typoraio.cn/#linux,Linux Mint可直接按照官网操作即可安装成功。克隆Yporaject项目git clone https://github.com/hazukieq/Yporaject.git配置Rust编译环境由于编译项目需要Rust的支持,所以需要配置相关环境。# 运行官方脚本安装即可 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh # 查看是否安装成功 cargo -v编译Yopraject项目# 进入Yoprainject项目 cd Yporainject # 运行编译命令 cargo build # 查看二进制是否生成,程序名称为node_inject ls target/debug # 尝试运行该二进制程序 cargo run复制二进制程序到安装目录下sudo cp target/debug/node_inject /usr/share/typora # 进入相关目录 cd /usr/share/typora # 给予二进制程序
jsDelivr是由Cloudflare提供的免费开源公共CDN。默认的提供节点是:cdn.jsdelivr.net ,该节点国内几乎不可用,需要使用可用性高的节点作为替代。jsDelivr节点常用于加速GitHub/npm项目,可通过更改节点改善项目在国内的可用性。gcore.jsdelivr.netGcore 节点可用性高testingcf.jsdelivr.netCloudflare 节点可用性高quantil.jsdelivr.netQuantil 节点可用性尚可fastly.jsdelivr.netFastly 节点可用性尚可originfastly.jsdelivr.netFastly 节点可用性低test1.jsdelivr.netCloudflare 节点可用性低cdn.jsdelivr.net通用节点可用性低个人提供的jsDelivr节点jsd.onmicrosoft.cn国内 CDNjsdelivr.b-cdn.net台湾 CDN这两个节点国内速度很快,不清楚稳定性。npm节点unpkg.com国内几乎不可用,可用下方国内CDN节点。npm.elemecdn.com
操作系统大版本升级有风险,如果不熟悉Linux的不建议进行大版本升级。备份数据在进行任何升级操作之前,务必备份重要数据。升级过程中可能会发生意外情况,导致数据丢失或损坏。通过创建数据备份,可以确保在升级过程中不会丢失重要文件。更新系统在开始升级之前,确保系统已经完全更新。sudo dnf upgrade --refresh -y # 重启电脑 reboot该命令将检查软件包仓库中的可用更新并将系统升级到当前版本最新。安装DNF插件sudo dnf install dnf-plugin-system-upgrade -y配置DNF加速sudo vi /etc/dnf/dnf.confmax_parallel_downloads默认是3,范围为3-20,修改成10,即同时下载10个包:max_parallel_downloads=10。开始升级# 卸载旧包 sudo dnf autoremove -y # 下载软件包 sudo dnf system-upgrade download --releasever=36 -y # 重启升级 sudo dnf system-upgrade rebo
AirPano是一个全景图网站,展示地球上约300多个地方的3,000多张全景照片,包括北极,南极,火山喷发,甚至是大气平流层的全景图。AirPano用无人机和直升机拍摄了世界上最美丽和最有趣的地方,并把它们制作成了高清的360度全景视频和照片。可以在网站上免费观看这些作品,感受不同地方的风土人情和自然景观。甚至可以用VR眼镜来增强沉浸感,就像亲自到那里游玩一样。网站地址AirPano:https://airpano.org.cn/
古诗文网作为传承经典的网站专注于古诗文服务,致力于让古诗文爱好者更便捷地发表及获取古诗文相关资料,包含了从秦朝到清朝的所有古诗文。【主要特色】里面的古诗文特别全搜索功能很方便原文有朗读,还有拼音没有收费,没有什么VIP界面没有花里胡哨的东西网站地址古诗文网:https://www.gushiwen.cn/
探索地球一个还不错的资源导航网站。包括影视、图片、音乐、阅读、生活、办公、设计、编程、游戏、教育、软件、工具等大类,大类下面还有二级分类,非常的细致,都是很优质的网站,很值得推荐收藏。网站地址探索地球:http://www.tansuoo.com/
Cryptomator是一款开源的加密工具,旨在为用户提供安全可靠的云存储解决方案。它允许用户在本地对文件进行加密,然后再将加密后的文件上传到云存储服务中,确保文件在上传和存储过程中得到保护,只有用户可以解密和访问这些文件。主要有以下特点和功能:强大的加密:使用先进的加密算法,如AES加密,确保用户的文件和数据得到高强度的保护。每个文件都被单独加密,即使存储在云端,也能保持数据的私密性用户友好的界面:提供直观简单的用户界面,使用户可以轻松创建和管理加密容器。用户可以在加密容器中组织和管理文件,就像普通文件夹一样跨平台支持:支持多种操作系统,包括Windows、MacOS、Linux、Android和iOS,用户可以在不同设备上访问和管理加密文件透明的操作:加密和解密操作对用户是透明的,用户只需输入解锁密码即可访问和编辑加密文件,而无需额外的复杂操作开源:Cryptomator是一个开源项目,其源代码公开且可审查,这增加了软件的透明度和安全性,使用户可以放心使用下载地址Cryptomator:https://cryptomator.org/downloads/
跑马灯一个网页滚动横幅应用,无需下载软件。输入文本、背景颜色、文本颜色、速度,点击开始,就可全屏查看跑马灯效果,非常的简单实用。网站地址跑马灯:https://tool.retiehe.com/marquee
冷熊简历一个基于Markdown编辑器的在线简历制作工具,除了拥有Markdown的功能外,还提供实时预览,一键PDF,含常用片段,内容自动保存。冷熊简历主要适用于程序员岗位。不需要寻找对应的简历模板,只需要根据情况增删对应的简历项目,即可一键生成简历范例内容,快速制作.md格式的简历。网站内置了内容片段,包括联系方式、个人信息、经历证明、能力证明、技能清单等模块,用户可以根据自己的情况来调整修改,添加丰富的内容,还可以引入第三方信息,如自己的自媒体内容,完成后即可一键生成PDF文件方便打印。网站地址冷熊简历:https://cv.ftqq.com/类似工具AI简历:https://airesumebuilder.me/zh-CN轻简历:https://www.wktline.com/
听乡音分享自己的家乡话,聆听别人的乡音。你可以在里面听到各种家乡话,并找到你熟悉的乡音,非常适合在海外的朋友。同样的诗词、影视句台词、日常对话、笑话段子,您可曾好奇来自五湖四海的朋友用家乡话怎么说?在“乡音”,您可以聆听各地朋友的方言朗读录音、与方言爱好者交流,也可以公开分享您的家乡话录音。还可以玩“乡音猜”游戏,猜录音者的家乡。网站地址听乡音:https://web.xiangyin.mobi/
Kiwix维基百科是非常实用的知识搜索引擎。然而受制于国内的网络环境,在访问维基百科时往往会受到某些限制,这对于希望使用维基这一巨大知识库的人来说是非常不爽的。为了解决这个问题,可以使用这款用于离线化维基百科的浏览工具:Kiwix。下载地址Kiwix:https://kiwix.org/en/
图吧工具箱是开源、免费、绿色、纯净的硬件检测工具合集,专为所有计算机硬件极客、DIY爱好者、各路大神及小白制作。集成大量常见硬件检测、评分工具,一键下载、方便使用。专业 · 专注于收集各种硬件检测、评分、测试工具,常见工具均有收集纯净 · 无任何捆绑强制安装行为,不写入注册表,没有任何敏感目录及文件操作,无任何诱导、孔吓、欺乍等操作绿色 · 仅提供自解压格式的压缩包(可右键使用任意解压工具打开),无需安装、注册等复杂操作,解压即可使用。用完可直接删除,无需卸载开放 · 群文件可直接下载源码,并提供硬件检测SDK,主流编程语言无门槛调用,且无需授权、免费使用无任何限制。不忘初心,始于2014,持续8年稳定更新,坚持做能方便大家使用的硬件检测工具箱。下载地址图吧工具箱:http://www.tbtool.cn/
Free Magazines是一个在线免费英文杂志外刊下载网站,免费提供各种类型的英文版科技杂志、综艺杂志、有声读物和周报日报下载,格式为PDF格式,而且质量比较高,直接在线预览下载,全部免费开放下载,无需注册登录,非常不错的一个在线免费英文杂志外刊下载网站。网站地址Free Magazines:https://freemagazines.top/
Mimo使用Mimo按照自己的节奏进行编码学习。提供Python、JavaScript、HTML、CSS等初学者友好的课程。参与互动练习、真实世界的项目,并获得可共享的证书。加入Mimo社区,立即开始您的编码之旅!这个轻量的编程学习网站,团队来自各个国家,非常年轻和有活力,课程编写也很生动~🔸从产品体验来看,Mimo团队非常关注用户的学习卡点,会针对每一步学习过程中可能出现的问题,提前做好铺垫和解答;帮助小白无痛入门,而不是一边学一边堆满问号。🔹一行代码里如果出现多个知识点,Mimo会细致地分拆步骤,每一步都只关注一个重点,这样既不容易因为出错而沮丧,也不会漏掉任何一个入门阶段的细微但重要的知识点。🔸最近新上线了社区板块,技术大大和小白在版块里交流心得。对于编程初学者来说,开始容易放弃更容易,这些有意义的交流应该是可以给到小白们很大的信心,克服心理上的畏惧和找到正确的方法,相信一定会有坚持和突破哒。🔹编程和语言一样是一个在应用中不断进步的工具,所以大大们也特别提到要多练习,亲自上手写代码比匆匆往前赶课程进度更重要!各位加油!网站地址Mimo:https://mimo.org/
看刊宝是一款安卓端软件,收录全网期刊杂志,国内外都有,里面的分类非常的全面,包括文学小说、文摘文萃、时政综合、商业财经、娱乐、军事、体育、美食、汽车等等,全部免费在线观看阅读,而且可以按照分类查看,还可以查看各本读物往期的版本,非常实用方便。下载地址看刊宝1.2.2版本:https://gaga.lanzoum.com/iq2Ig17c822d密码:3gkt
树是一种分层数据的抽象模型。二叉树中的节点最多只能有两个子节点:一个是左侧子节点,另一个是右侧子节点。二叉搜索树二叉搜索树(BST)是二叉树的一种,但是只允许在左侧节点存储(比父节点)小的值,在右侧节点存储(比父节点)大的值。插入const COMPARE = { less: -1, more: 1, equal: 0, } class Node { constructor(key) { this.key = key this.left = null this.right = null } } class BST { constructor(key) { this.root = null } // 插入 insert(key) { if (this.root == null) { this.root = new Node(key) } else { this.insertNode(this.root, key) } } compareFn(a, b) {
随机算法将一个数组中的值进行随机排列,现实中的一个常见场景是洗扑克牌。function shuffle(array) { for (let i = array.length - 1; i > 0; i--) { const randomIndex = Math.floor(Math.random() * (i + 1)) swap(array, i, randomIndex) } return array } function swap(array, a, b) { const temp = array[a] array[a] = array[b] array[b] = temp } arr = [1, 2, 3, 4, 5] console.log(...arr) console.log(shuffle(arr))
顺序搜索最基本的搜索算法,最低效的一种搜索算法。它的机制是,将每一个数据结构中的元素和要找的元素做比较。function search(array, value) { for (let i = 0; i < array.length; i++) { if (value === array[i]) { return i } } return -1 } console.log(search([1, 3, 5, 2, 0], 5))二分搜索这个算法要求被搜索的数据结构已排序。function binarySearch(find, arr, start, end) { start = start || 0 end = end || arr.length - 1 if (start <= end && find >= arr[start] && find <= arr[end]) { if (arr[start] === find) { return start
三毛
头发渐少,仅剩三根