This commit is contained in:
1708-huayu 2023-10-13 09:55:51 +08:00
parent abc68d51ba
commit ac8f7f10b9
11 changed files with 97 additions and 1 deletions

17
df/磁盘处理记录.md Normal file
View File

@ -0,0 +1,17 @@
误删启动盘又想加载之前的信息。
基本命令:
```shell
# 查看磁盘使用
df
# 磁盘管理
fdisk --help
# 磁盘挂载
mount /dev/sda2 old
# mount: /home/shixiaohua/old: mount(2) system call failed: Cannot allocate memory.
# 追踪错误信息
strace mount /dev/sda2 old
```

76
df/项目启动.md Normal file
View File

@ -0,0 +1,76 @@
# 项目启动
## zookeeper 启动
```shell
## 启动
zkServer.sh start
## 查看状态
zkServer.sh status
```
## kafka启动
```shell
## 启动
./kafka-server-start.sh -daemon ../config/server.properties
## 创建主题
./kafka-topics.sh --zookeeper service:2181,service-node1:2181,service-node2:2181/bigdata/kafka --create --topic "t_traffic" --partitions 3 --replication-factor 2
```
## flume启动
```shell
flume-ng agent -n a -f ./to_kafka.conf -Dflume.root.logger=INFO,console
```
## hadoop启动
```shell
## 启动全部node节点
start-all.sh
## 关闭安全模式
hdfs dfsadmin -safemode leave
```
## yarn启动
```shell
yarn-daemon.sh start resourcemanager
```
## hive启动
```shell
## 启动元数据
hive --service metastore &
## 启动客户端
hive
```
## canal
启动
```sh
cd /usr/local/capsoftware/canal/deployer/bin
sh startup.sh
```
## ES
启动
```sh
cd /usr/local/capsoftware/es/elasticsearch-7.12.0/bin
su es
./elasticsearch
# 是否启动http://localhost:9200/
# header插件
cd /usr/local/capsoftware/es/elasticsearch-7.12.0/elasticsearch-head
npm run start
```

View File

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

Before

Width:  |  Height:  |  Size: 426 KiB

After

Width:  |  Height:  |  Size: 426 KiB

View File

@ -147,14 +147,17 @@ systemctl status mysqld
连接设置mysql
```
```sql
mysql -u root -p
# 修改密码
ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';
# 设置远程连接
CREATE USER 'root'@'127.0.0.1' IDENTIFIED BY '123456';
CREATE USER 'root'@'::1' IDENTIFIED BY '123456';
# 设置远程密码
CREATE USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456';
# 授予所有权限
GRANT ALL ON *.* TO 'root'@'%';
flush privileges;
```