随笔分类 -  debian

摘要:下载 wget http://download.redis.io/releases/redis-4.0.9.tar.gz 创建redis配置目录 mkdir /etc/redis/conf -p 解压 tar xf redis-4.0.9.tar.gz cd redis-4.0.9/ 复制文件 cd 阅读全文
posted @ 2022-03-24 15:23 lucky_tomato 阅读(75) 评论(0) 推荐(0) 编辑
摘要:#下载 apt-get install subversion # 创建svn库 svnadmin create /data/svn_database 进入配置目录 cd /data/svn_database/conf 编辑权限 vim authz 输入一下内容,/表示根目录,rw表示可读写 [/] 阅读全文
posted @ 2022-03-24 14:55 lucky_tomato 阅读(124) 评论(0) 推荐(0) 编辑
摘要:一、环境 拉取文件ip:192.168.1.2 代码服务器ip: 192.168.1.1 二、配置 默认情况下debian9已经安装了rsync 2.1代码服务器配置 创建文件: touch /etc/rsyncd.conf 写入以下数据 uid = root gid = root use chro 阅读全文
posted @ 2022-03-23 19:57 lucky_tomato 阅读(162) 评论(0) 推荐(0) 编辑
摘要:在拷贝前输入:set paste 阅读全文
posted @ 2022-03-18 16:35 lucky_tomato 阅读(26) 评论(0) 推荐(0) 编辑
摘要:/var/www/html/ 阅读全文
posted @ 2022-03-17 17:49 lucky_tomato 阅读(126) 评论(0) 推荐(0) 编辑
摘要:这个问题是因为版本对不上 pip3 install pymysql==0.9.3 -i https://pypi.douban.com/simple/ 阅读全文
posted @ 2022-03-16 18:55 lucky_tomato 阅读(60) 评论(0) 推荐(0) 编辑
摘要:apt-get install python3-venv # 生成一个test_env虚拟环境 python3 -m venv test_env # 进去虚拟环境 source test_env/bin/activate 阅读全文
posted @ 2022-03-16 18:41 lucky_tomato 阅读(181) 评论(0) 推荐(0) 编辑
摘要:apt install default-jdk 阅读全文
posted @ 2022-03-16 15:37 lucky_tomato 阅读(375) 评论(0) 推荐(0) 编辑
摘要:报错如下: 解决方法: apt-get install libmariadbd18 libmariadbd-dev 然后安装mysqlclient 阅读全文
posted @ 2022-03-16 15:27 lucky_tomato 阅读(101) 评论(0) 推荐(0) 编辑
摘要:apt-get install python-pip pip install virtualenv -i https://pypi.douban.com/simple/ virtualenv -p /usr/bin/python2.7 env2.7 cd env2.7/ source bin/act 阅读全文
posted @ 2022-03-16 14:14 lucky_tomato 阅读(113) 评论(0) 推荐(0) 编辑
摘要:一、让debian终端文件显示不同颜色 vim /etc/vim/vimrc 取消“syntax on”的注释 二、让debian终端文件夹显示不同颜色 vim /root/.bashrc 注释以下内容: #export LS_OPTIONS='--color=auto' #显示颜色 #eval ` 阅读全文
posted @ 2022-03-11 14:18 lucky_tomato 阅读(586) 评论(0) 推荐(0) 编辑
摘要:默认安装完MariaDB查看密码 /etc/mysql/debian.cnf,这个密码是属于debian-sys-maint 修改MariaDB root密码 1、登录MariaDB,查看默认的连接方式 select user, plugin from mysql.user; 2、如果是auth_s 阅读全文
posted @ 2022-03-11 12:04 lucky_tomato 阅读(514) 评论(0) 推荐(0) 编辑
摘要:apt-get install net-tools -y 阅读全文
posted @ 2022-03-10 19:05 lucky_tomato 阅读(68) 评论(0) 推荐(0) 编辑
摘要:apt install mariadb-server 阅读全文
posted @ 2022-03-10 19:04 lucky_tomato 阅读(49) 评论(0) 推荐(0) 编辑
摘要:# 切换到root权限下 cp /etc/apt/sources.list /etc/apt/sources.list.bak # 备份原有文件 # 打开文件编辑 vi /etc/apt/sources.list # 替换内容为刚才复制的内容 deb http://mirrors.aliyun.co 阅读全文
posted @ 2022-03-10 18:49 lucky_tomato 阅读(292) 评论(0) 推荐(0) 编辑
摘要:1、查看机器默认时区 [root@test 18:59:50 ~]# timedatectl Local time: Tue 2022-03-08 18:59:55 CST Universal time: Tue 2022-03-08 10:59:55 UTC RTC time: Tue 2022- 阅读全文
posted @ 2022-03-08 19:05 lucky_tomato 阅读(266) 评论(0) 推荐(0) 编辑
摘要:# 创建挂载目录 mkdir /mnt/dev # 挂载 mount /dev/cdrom /mnt/dev # 添加本地apt源 apt-cdrom add /mnt/dev # 下载工具 apt-get install vim 阅读全文
posted @ 2022-03-08 18:59 lucky_tomato 阅读(313) 评论(0) 推荐(0) 编辑

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