gfirefly 学习之ubuntu 15 python 配置python (2)
来源:互联网 发布:域名注册软件 编辑:程序博客网 时间:2024/05/19 18:13
c++编译库:
sudo apt-get install build-essential
python-dev:
apt-get install python-dev
python-setuptools:
sudo apt-get install python-setuptools
gevent:
sudo easy_install gevent
检查是否按照成功:
python
import gevent没有报错即可
访问mysql, memcach:
安装python库
sudo easy_install python-memcached
操作数据库组建:
sudo easy_install DBUtils
python接口实现
sudo easy_install zope.interface
控制cpu访问:
sudo easy_install affinity
sudo apt-get install mysql-server
ps -e |grep mysql
远程访问mysql: SQLyog软件
设置mysql
mysql -u root -p
//给本地用户权限
grant all on *.* to root@localhost identified by '你的用户名' with grant option;
//可以远程访问权限
grant all on *.* to root@‘%’ identified by '你的用户名' with grant option;
grant all on *.* to root@127.0.0.1 identified by 'zcl' with grant option;
修改mysql配置文件:
cd /etc/mysql
sudo vim my.cnf
或者:
vim mysql.conf.d/mysqld.cnf
找到bind-address
改成:任何一个ip都可以访问
bind-address = 0.0.0.0
sudo service mysql restart重启服务
sudo apt-get install mysql-client
sudo apt-get install libmysqlclient-dev
下一步安装gfirefly
- gfirefly 学习之ubuntu 15 python 配置python (2)
- gfirefly 学习之ubuntu 15 python 环境熟悉配置ssh (1)
- gfirefly 学习之ubuntu 15 python 安装memcached, SecureCRT和Eclipse (3)
- python学习之环境配置
- Ubuntu Python 环境配置
- ubuntu 配置python环境
- Ubuntu+DroneKit Python配置
- Ubuntu配置python
- python学习之旅之python环境的配置
- python学习之--安装配置环境
- python学习之--配置Sublime Text2的python运行环境
- Python学习笔记(Ubuntu)
- Ubuntu下Python深度学习TensorFlow+Theana+Keras配置文档
- python 进阶学习之15
- Python学习之旅-15
- Ubuntu安装配置Python.pyDev
- ubuntu 下vim 配置python
- 初用ubuntu配置python环境
- 使用Java和JS访问cookies
- IOS消息推送之APNS
- cruskal算法求最小支撑树 打印支撑树的边集合 带图例
- latex: 在article文档环境(multicols)中, 使用begin{figure}无法显示的问题
- 计算两个中文字符串相似度——编辑距离算法
- gfirefly 学习之ubuntu 15 python 配置python (2)
- android 网络编程(二、IO流)
- LeetCode Kth Smallest Element in a BST DFS
- 名词
- IplImage, Mat, CvMat之间转换
- 之前项目中用到Spring+Quartz实现定时任务的配置方法
- IOS开发----UISearchBar,搜索框的使用
- 【转】asp调用C#编写的DLL发送邮件
- [转载]关于window下rNode.js的本地包路径过长,导致一些功能无法使用