暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
linux常用命令.doc
88
2页
1次
2023-10-23
5墨值下载
linux 常用命令
linux 安装 mysql
1.创建目录:mkdir /usr/local/mysql
2.下载安装包:wget http://dev.MySQL.com/get/Downloads/MySQL-5.7/mysql-5.7.11-Linux-glibc2.5-
x86_64.tar.gz(联网状态下)
3.解压并复制
tar -xvf mysql-5.7.11-Linux-glibc2.5-x86_64.tar.gz
mv mysql-5.7.11-linux-glibc2.5-x86_64/* /usr/local/mysql/
4.创建 data 目录:mkdir /usr/local/mysql/data
5.创建 mysql 用户并添加权限
groupadd mysql
useradd -r -g mysql mysql
chown -R mysql.mysql /usr/local/mysql/
6.复制配置文件到 /etc/my.cnf
cp -a ./support-files/my-default.cnf /etc/my.cnf (选择 y)
7.mysql 的服务脚本放到系统服务中
cp -a ./support-files/mysql.server /etc/init.d/mysqld
8.修改 my.cnf 文件
# These are commonly set, remove the # and set as required.
basedir = /usr/local/mysql
datadir = /usr/local/mysql/data
port = 3306
# server_id = .....
socket = /tmp/mysql.sock
character-set-server = utf8
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M
lower_case_table_names=1
9.启动 mysql:service mysqld start
10.修改 mysql 密码
mysql -u root mysql
update user set authentication_string=PASSWORD('111111') where user='root';
linux 安装 consul
下载:wget https://releases.hashicorp.com/consul/1.2.0/consul_1.2.0_linux_amd64.zip
启动:./consul agent -dev -ui -node=consul-dev -client=192.168.32.17 -config-dir
/usr/local/y9consul/config.json &
./consul agent -dev -ui -bootstrap-expect=1 -data-dir=/usr/local/y9consul/data -node=agent-one
-client=172.18.74.25 -config-dir /usr/local/y9consul/config.json &
查看 java 进程
ps -ef|grep java
of 2
5墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜