Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我的ubuntu20安装成功啦记录下过程 #2

Open
cctv180 opened this issue Apr 17, 2021 · 0 comments
Open

我的ubuntu20安装成功啦记录下过程 #2

cctv180 opened this issue Apr 17, 2021 · 0 comments

Comments

@cctv180
Copy link

cctv180 commented Apr 17, 2021

install.sh 不适用于 Debian 系列,也就是手动操作
apt install -y mariadb-server python3 python3-setuptools nginx

pip3 install -r requirements.txt 安装过程有个模块缺少依赖搜索解决
重新装了补充
正如这里提到的,你应该这样做:
sudo apt-get install python3-dev default-libmysqlclient-dev build-essential
Debian / Ubuntu
sudo yum install python3-devel mysql-devel
红帽 / CentOS
之后就做 pip install mysqlclient

手动替换dj_pagination的pagination.html 这里是3.8版本路径有点区别
rm -f /usr/local/lib/python3.8/dist-packages/dj_pagination/templates/pagination/pagination.html
cp templates/zde/pagination.html /usr/local/lib/python3.8/dist-packages/dj_pagination/templates/pagination/pagination.html

run.sh 我的环境报错,需要删除function声明,原因不明,到这里就妥啦
nginx配置按需要弄

附一些能用到的命令
查看服务器 8000 端口的占用情况: lsof -i:8000
内网请求下数据确认OK: curl http://127.0.0.1:8000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant