关闭防火墙以及selinux
chkconfig iptables off
setenforce 0
检测内存泄露
valgrind --tool=memcheck --leak-check=full ./test
数据库授权:
mysql -A -uroot -ppassword test_db;
grant select, update, insert on test_db.* to username@'10.0.0.3' identified by 'password';flush privileges;
grant all privileges on tingxie.* to username@localhost identified by '123456';
MYSQL数据库连接
mysql -A -hip -uusername-ppassword test_db;
MYSQL创建用户
CREATE USER 'username'@'host' IDENTIFIED BY 'password';
centos升级gcc
yum install devtoolset-3-gcc-c++ devtoolset-3-gdb;
scl enable devtoolset-3 bash