本来不想做了的,学习一些东西,加油,努力!
安装谷歌浏览器
sudo http://www.linuxidc.com/files/repo/google-chrome.list -P /etc/apt/sources.list.d/
wegt -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt-get update
sudo apt-get install google-chrome-stable
/usr/bin/google-chrome-stable
安装完成
安装mysql
sudo apt-get install mysql-server -y
sudo apt-get install mysql-client
sudo apt-get install libmysqlclient-dev -y
sudo netstat -tap | grep mysql # 查看是否安装成功
netstat -nlt|grep 3306 # 查看mysql 3306 端口占用情况
CREATE DATABASE dbname DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
/etc/mysql/debian.cnf
//查看默认分配的密码
[client]
host = localhost
user = debian-sys-maint
password = eyPDN7kavhmjCZUn (记住这个密码)
socket = /var/run/mysqld/mysqld.sock
// 输入命令后把上面的密码粘贴进去
mysql -udebian-sys-maint -p
//进入到mysql界面厚修改密码
update mysql.user set authentication_string=password('newpassword') where user='root';
update mysql.user set authentication_string=password('newpassword') where user='root' and Host = 'localhost';
//都要使用刷新权限列表
flush privileges;
安装MongoDB
sudo apt-get install mongodb -y
安装redis
sudo apt-get install redis-server -y
ps -aux|grep redis # 查看redis进程
netstat -nlt|grep 6379 # 在终端中通过启动命令检查Redis服务器状态
sudo /etc/init.d/redis-server status # 通过启动命令检查Redis服务器状态,一般显示显示: redis-server is running
redis-cli # 访问redis客户端
sudo vim /etc/redis/redis.conf # 用vi打开Redis服务器的配置文件redis.conf
requirepass password # 取消注释requirepass
#bind 127.0.0.1 # 让Redis服务器被远程访问,注释掉这一句
sudo /etc/init.d/redis-server restart #重启Redis服务器(sudo service redis-server restart)
进入redis之后验证密码 auth passwords
redis-cli -a [password] -h 192.168.1.199 # 访问另一台redis
redis-cli -a [password] # 进入本机
redis-cli --stat # 查看状态