查看是否安装ruby
rpm -qa | grep ruby
yum list installed | grep ruby
查看安装到哪儿了
whereis mysql
查询运行文件所在路径
which mysql
--------------------------
从最新版本的linux系统开始,默认的是 Mariadb而不是MySQL!
使用系统自带的repos安装很简单:
yum install mariadb mariadb-server
systemctl start mariadb ==> 启动mariadb
systemctl enable mariadb ==> 开机自启动
mysql_secure_installation ==> 设置 root密码等相关
mysql -uroot -p123456 ==> 测试登录!
结束!
-------------------------------------------------
systemctl restart mariadb.service
--------------------------------------------------
xz -d 要解压的文件
xz -d node-v6.9.4-linux-x64.tar.xz
tar xvf xxx.tar来解包
-------------------------------------------------
CentOS7安装NodeJS6.9
----------------------------------------------------
yum install epel-release
yum install nodejs
yum install mongodb-server
yum install mongodb
yum install redis
===============================
nodejs
yum install npm 安装 包管理 卸载 包管理 sudo npm uninstall npm -g
npm config set strict-ssl false 取消ssl严格认证
npm install -g cnpm 安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org/ 报错bash: cnpm: command not found...