随笔 - 633,  文章 - 0,  评论 - 13,  阅读 - 48万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  ubuntu

1
ubuntu18.04配置网络
摘要:sudo lshw -class network :查看本机网卡信息 cd /etc/netplan sudo vim 00-installer-config.yaml 1.配置自动获取ip # This is the network config written by 'subiquity' ne 阅读全文
posted @ 2022-04-20 10:25 大话人生 阅读(794) 评论(0) 推荐(0) 编辑
ubuntu设置数据库远程登录
摘要:1.创建用户: Create user 'root'@'%' identified by '123456'; 2.赋值所有权限: grant all on *.* to 'root'@'%'; 3.刷新: flush privileges; 阅读全文
posted @ 2022-04-19 16:42 大话人生 阅读(26) 评论(0) 推荐(0) 编辑
ubuntu系统添加开机自动启动 /home/ubuntu/myscript/startpic.sh 脚本
摘要:cd /etc/systemd/system sudo vim startpic.service: [Unit]Description=It is startpic [Service]Type=simpleExecStart=nohup /home/ubuntu/myscript/startpic. 阅读全文
posted @ 2022-02-22 21:01 大话人生 阅读(88) 评论(0) 推荐(0) 编辑
ubuntu关闭mysql日志
摘要:/etc/mysql/mysql.conf.d路径下的mysqld.cnf文件用管理员权限编辑文件,在文件内添加innodb_flush_log_at_trx_commit = 0 如下: cd /etc/mysql/mysql.conf.d sudo vim mysqld.cnf 添加 : inn 阅读全文
posted @ 2022-02-22 20:16 大话人生 阅读(159) 评论(0) 推荐(0) 编辑
ubuntu系统开机自动爬取数据
摘要:cd /etc/systemd/system sudo vim startpic.service: [Unit]Description=It is startpic [Service]Type=simpleExecStart=/home/ubuntu/.myenv/myfirst/bin/pytho 阅读全文
posted @ 2022-02-22 07:41 大话人生 阅读(37) 评论(0) 推荐(0) 编辑
ubuntu安装mysql
摘要:https://www.cnblogs.com/wangwust/p/9765843.html sudo apt update sudo apt install mysql-server sudo systemctl status mysql #查看数据库状态设置数据库远程访问: sudo mysq 阅读全文
posted @ 2022-02-21 21:00 大话人生 阅读(56) 评论(0) 推荐(0) 编辑
xshell 打开pycharm 按 ctrl+shift 可取消输入一个字母出现两个字母的现象
摘要:xshell 打开pycharm 按 ctrl+alt+shift+空格 可取消输入一个字母出现两个字母的现象 ctrl+shift 组合按键 可取消输入一个字母出现两个字母的现象 阅读全文
posted @ 2022-02-21 20:50 大话人生 阅读(216) 评论(0) 推荐(0) 编辑
ubuntu 系统 pycharm做软连接
摘要:sudo ln -s /home/ubuntu/mymnt/project/pycharm/pycharm2020/pycharm-2020.1/bin/pycharm.sh /usr/sbin/pycharm sudo ln -s /mnt/project/pycharm/pycharm2020/ 阅读全文
posted @ 2022-02-21 20:45 大话人生 阅读(133) 评论(0) 推荐(0) 编辑
ubuntu系统添加开机自动启动django
摘要:cd /etc/systemd/system sudo vim startdjango.service: [Unit]Description=It is startdjango [Service]Type=simpleExecStart=/home/ubuntu/.myenv/myfirst/bin 阅读全文
posted @ 2022-02-21 20:14 大话人生 阅读(306) 评论(0) 推荐(0) 编辑
ubuntu系统将项目目录添加到环境变量中
摘要:vi ~/.bashrc export PATH=$PATH:/home/ubuntu/mymnt/project/myproject/wanwenyc export PYTHONPATH="/home/ubuntu/mymnt/project/myproject/wanwenyc:$PYTHONP 阅读全文
posted @ 2022-02-20 18:55 大话人生 阅读(199) 评论(0) 推荐(0) 编辑
ubuntu安装python
摘要:sudo apt update:更新apt sudo apt install software-properties-common :安装必备组件 sudo apt install python3-pip :安装python3的pip pip install virtualenvwrapper :安 阅读全文
posted @ 2022-02-20 17:23 大话人生 阅读(730) 评论(0) 推荐(0) 编辑
Ubuntu系统设置不休眠
摘要:不休眠 sudo vim /etc/systemd/logind.conf 把#HandleLidSwitch=suspend 修改为 HandleLidSwitch=ignore 然后service systemd-logind restart 或者reboot 阅读全文
posted @ 2022-02-20 17:02 大话人生 阅读(626) 评论(0) 推荐(0) 编辑
挂载外部硬盘
摘要:lsblk:查看所有硬盘 sudo blkid /dev/sdb1 :查看外包硬盘的uuid和类型 Vim /etc/fstab UUID=78f5b032-393b-4ff7-a918-16af28ef0c3b /media/disk2 ext4 defaults 0 2 sudo blkid / 阅读全文
posted @ 2022-02-20 16:34 大话人生 阅读(34) 评论(0) 推荐(0) 编辑
Ubuntu系统关机重启命令
摘要:shutdown -r now 阅读全文
posted @ 2022-02-20 16:06 大话人生 阅读(113) 评论(0) 推荐(0) 编辑
Ubuntu系统手动分区
摘要:https://blog.csdn.net/chencaw/article/details/101106073?spm=1001.2101.3001.6650.5&utm_medium=distribute.wap_relevant.none-task-blog-2%7Edefault%7EBlog 阅读全文
posted @ 2022-02-20 15:29 大话人生 阅读(275) 评论(0) 推荐(0) 编辑
Ubuntu系统cron定时
摘要:https://blog.csdn.net/katyusha1/article/details/78619549?locationNum=1&fps=1 阅读全文
posted @ 2022-02-07 07:16 大话人生 阅读(56) 评论(0) 推荐(0) 编辑
Ubuntu nohup 使用
摘要:nohup用于使程序在用户退出登陆、关闭终端之后仍能继续运行 用法: nohup your_command & #(符号&使程序在后台运行) exit #(退出nohup模式) 启动后,会将程序运行输出记录在当前目录下的nohup.out文件下,如果当前目录不可写,则会被记录在Home目录下的noh 阅读全文
posted @ 2022-02-06 16:51 大话人生 阅读(1363) 评论(0) 推荐(0) 编辑
ubuntuc查找正在运行的进程
摘要:ps -ef|grep "your_command" #(查找运行该命令的进程)如:ps -ef | grep startSpiderPic结果如下: ubuntu 1462 1 0 07:35 ? 00:00:00 /bin/bash /home/ubuntu/myscript/startSpid 阅读全文
posted @ 2022-02-06 16:49 大话人生 阅读(233) 评论(0) 推荐(0) 编辑
ubuntu让脚本在后台运行
摘要:nohup ./startSpiderPic.sh & 阅读全文
posted @ 2022-02-04 22:05 大话人生 阅读(218) 评论(0) 推荐(0) 编辑
ubuntu添加开机启动程序
摘要:cd /etc/systemd/system vim startspiderimg.service: [Unit] Description=It is startspiderimg [Service] Type=simple ExecStart=/home/ubuntu/virtualenvs/my 阅读全文
posted @ 2022-02-04 21:53 大话人生 阅读(91) 评论(0) 推荐(0) 编辑

1
点击右上角即可分享
微信分享提示