我在Github上搜索时发现了很多相关的内容:https://github.com/search?langOverride=&q=url+shortener&repo=&start_value=1&type=Repositories。
Firefly声称可以在2分钟内运行起来:https://github.com/ariejan/firefly#readme 以下是其他建议:http://www.webresourcesdepot.com/7-open-source-and-free-url-shortener-scripts-to-create-your-own/
你可以通过数据库轻松地自己完成这个任务。只需将每个长网址存储在数据库中作为键,而短网址则作为值。您可以在表中使用自增字段轻松创建一个短网址。您的网址将如下所示: http://mysite.com/12345 在您选择的服务器端编程语言中,只需查找表格,然后执行重定向即可。