【linux】服务器安装jupyter&使用域名登陆
原文:https://zhuanlan.zhihu.com/p/340249373
搭建环境的前期准备
一台服务器
一个备案的域名
ssl证书(在阿里云搜索ssl,可以免费申请)
Jupyter 环境的简单安装
我使用的ubuntu 20.04系统
安装anconda
详细方案参考:[icon-url href=“https://www.lthero.cn/?p=1447” target="_blank"]网址[/icon-url]
安装 Jupyter Notebook
切换到python环境下:
1(base)$ conda install jupyter notebook
输入python,配置jupyter密码
1234(base)$ python>>> from notebook.auth import passwd>>> passwd() # 这一步之后输入你自己的密码并重复输入一次。会输出一长串加密后的东西,将其复制下来后面要用!!!>>> quit() # 退出 Pyt ...
【linux】终端命令符修改
终端命令符修改
编辑bashrc文件,执行:
1vim ~/.bashrc
按shift + g 跳到最下行,按 o 插入
123export PS1="\[\e[33;1m\]\u@\h:\w$ \[\e[0m\]"#或【从AWS服务器里面提取出来的】PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
32是绿色 33淡黄色
\u 指 user
\h 指 hostname
假如cd 进入了/home/lthero/Media/目录
\w 显示当前完整路径 /home/lthero/Media/
\W 只显示当前目录 /Media
修改后立即生效 ,执行:
1source ~/.bashrc
修改hostname
123$ hostname 要修改成的名字如$ hostname lthero
【linux】Unix&Linux大学教程(英文版本)
原名:Harley Hahn’s Internet Yellow Pages
作者网址:[icon-url href=“http://www.harley.com/index.shtml” target="_blank"]hitme[/icon-url]
引用:
人们可能想知道:假如 Ettrich 的女朋友没有那么漂亮并且还有点书呆子,那么开发一个真正的桌面环境还需要等多长时间呢?既然 KDE 的到来对 Linux 在全世界的流行有着极其深刻的影响,那么是不是不用争论,应该有更多的社会资源致力于鼓励漂亮的女人和程序员约会呢?引自第74页
来自豆瓣的评论:
实在是很好的一本书。 挺厚,但是读起来很流畅,分类也很好,都比较基础,全面。 特别是过滤器那些说的特别详细。语言还比较幽默,引人入胜。 你甚至可以把它当做一本小说来看,我当初就是如此。 强烈推荐。
pdf下载链接:
[c-downbtn type=“lz” url=“https://wwa.lanzoui.com/iTvE6tr5ysd” pwd=“9zjo”]下载[/c-downbtn]
【linux】云服务器入门手册
入手服务器需要的操作:
购买服务器
腾讯云服务器活动 [icon-url href=“https://curl.qcloud.com/NkQUL7ha” target="_blank"]hit me[/icon-url]
腾讯云领取1~2月轻量服务器地址[icon-url href=“https://cloud.tencent.com/act/free?from=14600” target="_blank"]hit me[/icon-url]
目前推荐的入门级服务器:轻量应用服务器
配置如下:
74元可以 2核4G 8Mbps 80G云盘容量 月流量1200GB 一年
阿里云活动 [icon-url href=“https://www.aliyun.com/activity/daily/fy22sepmain?userCode=oryi7uxz” target="_blank"]网址[/icon-url]
目前推荐的入门级服务器:轻量应用服务器
配置如下:
最低60元 2核2G 5Mbps 60G云盘 月流量10 ...
html制作
网站图标制作[icon-url href=“https://fontawesome.com/v5.15/icons?d=gallery” target="_blank"]hitme[/icon-url]
背景添加动态线可以随着鼠标移动[icon-url href=“https://blog.csdn.net/qq_40223005/article/details/80810695” target="_blank"]hitme[/icon-url]
网页各种字体[icon-url href=“https://blog.csdn.net/sinat_39430615/article/details/77142137” target="_blank"]hitme[/icon-url]
舒服的颜色[icon-url href=“https://blog.csdn.net/zhang_hui_cs/article/details/7459414” target="_blank"]hitme[/icon-url]
jq ...
【php】由服务器发送邮件
来源:CSDN
前提:阿里云开通邮件推送服务
[loginshow]
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109<?php/** * @param $address mixed 收件人 多个收件人/或需要设置收件人昵称时为数组 array($address1,$address1)/array(array('address'=>$address1,'nickname'=>$nickname1),array('address'=>$address2,'nickname'=>$nickname ...
【Linux】安装Anaconda和tensorflow-lthero
来源:[icon-url href=“https://blog.csdn.net/qq_34769162/article/details/107687659” target="_blank"]CSDN[/icon-url]
今天要在服务器上用tensorflow程序,直接安装tensorflow失败了而且麻烦,于是先安装Anaconda,再用其进行安装tensorflow。
安装过程
下载
可以在清华镜像下找到对应安装包名字(如:Anaconda3-2021.05-Linux-x86_64.sh)
注意linux架构,是x86还是arm。
命令:wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2021.05-Linux-x86_64.sh
安装
安装Anaconda,命令:bash Anaconda3-2021.05-Linux-x86_64.sh (名字要对应上,Anaconda默认安装在用户目录)
进入用户目录(cd ~) , 进入切换python环境**.bashr ...
【tips】解决mysql在unix上无法登陆
报错:Access denied for user 'root'@'localhost' (using password: YES)
解决mysql在unix上无法登陆,可用
[icon-url href=“https://blog.csdn.net/billycoder/article/details/90763099?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_title~default-0.base&spm=1001.2101.3001.4242” target="_blank"]hit me[/icon-url]
报告 :connect time out
可能是数据库权限只对本地程序开放了访问权限
【linux】宝塔安装命令
宝塔安装命令
Centos安装脚本
1yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
Ubuntu/Deepin安装脚本
1wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh
Debian安装脚本
1wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh
Fedora安装脚本
1wget -O install.sh http://download.bt.cn/install/install_6.0.sh && bash install.sh
【php】文件上传专题
单文件上传
原理
文件从用户本地电脑通过web表单传输到服务器指定目录下
流程
浏览器请求一个服务器html脚本,包含文件上传表单
用户选择文件并上传
服务器将文件保存到临时目录
服务器脚本开始工作,判断文件有效,将有效文件从tmp目录移到指定目录(文件上传完成)
[zd-plane title=“演示图”]
[/zd-plane]
表单制作
表单包含三个属性:
method属性:表单必须用post方式
enctype属性:form 表单属性,用来规范表单数据的编码方式
action属性:将数据提交给哪里
对应的HTML代码
1234<form method='post' enctype='multipart/form-data' action='action.php'><input type="file" name="image"><input type="submit" name="submit" v ...












