在越狱的设备中打开Cydia, 然后搜索 OpenSSH, 点击安装
使用ssh客户端连接到你的Iphone, 端口22, 默认密码 alpine ssh [email protected]
然后的Iphone的终端内执行:
apt-get install python3.7 make cmake gcc gcc++ clang
python3 -m ensurepip # 安装pip3
pip3 install wheel
pip3 install tornado
import asyncio
import tornado.web
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write("Hello, world")
def make_app():
return tornado.web.Application([
(r"/", MainHandler),
])
async def main():
app = make_app()
app.listen(8888)
print('listen 8888 success ')
await asyncio.Event().wait()
if __name__ == "__main__":
asyncio.run(main())
python3.7 test.py
打开浏览器即可访问: http://192.168.0.131:8888
pgdlemwrlp说: Muchas gracias. ?Como puedo iniciar sesion?