分类: linux

Tilo Mitra's avatar

CentOS7安装MariaDB

1.安装并启动MariaDB[eason@localhost 桌面]$sudo yum install mariadb mariadb-server [eason@localhost 桌面]$ systemctl start mariadb.service#开启 MariaDB 数据库服务 #设置服务器开机或重启时自动开启 MariaDB 数据库服务 [eason@localhost 桌面]$ systemctl enable mariadb.service Created symlink from /etc/systemd/system/multi-user.target.wa...

Tilo Mitra's avatar

Ubuntu16.04安装MySQLdb

$ sudo apt-get install libmysqlclient-dev $ sudo pip install mysql-python $ python Python 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import MySQLdb >>>

Tilo Mitra's avatar

Ubuntu 16.04无法更改分辨率的解决办法

问题描述虚拟机Ubuntu开机发现分辨率为800×600,而本机实际分辨率为1920×1080,在“系统设置”–“显示”中进行更改发现竟然没有1920×1080的选项。好吧,只好另外想办法了,下面记录解决过程。查看显示器支持的分辨率情况使用xrandr命令查看当前所能检测到的分辨率,而本机显示器的最佳分辨率为1920×1080,由于未能正确检测,所以得到的是如下结果:$ xrandr Screen 0: minimum 1 x 1, current 800 x 600, maximum 8192 x 8192 Virtual1 connected primary 800x600+0+...

Tilo Mitra's avatar

Linux配置ssh免密登录

环境两台机器均为ubuntu,假设为机器A 和机器B 吧机器A :本地主机,用于控制其他主机的机器机器B :远程服务器,假设ip为23.116.132.110机器A 上的操作执行命令ssh-keygen -t rsa (连续三次回车,即在本地生成了公钥和私钥,不设置密码)$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/eason/.ssh/id_rsa): Enter passphrase (empty for n...

Tilo Mitra's avatar

Ubuntu16.04更换阿里云源

备份$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak编辑$ sudo vi /etc/apt/sources.list输入如下内容# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties deb ...

下一页