Alibaba Cloud entry configuration macOS version

connect to the server

1. Purchase
2. Enter the lightweight application server workbench
3. Remote connection
Options 3: The client uses the account password to connect, set its own password
4. macOS opens the terminal, enter

ssh root@ip

Enter yes as prompted, enter the password you just configured (not your own terminal password) and the
connection is successful
https://www.jianshu.com/p/32f45acf94fd?spm=a311a.7996332.0.0.308f3080kh5zKU

download jdk

1. Check if jdk is installed

[root@iZ4zeaehxxqhrn553tblkkZ /]# yum list installed |grep java

2. Install 1.8 online

[root@iZ4zeaehxxqhrn553tblkkZ /]# yum -y install java-1.8.0-openjdk

3. After the installation is complete, check the version information

[root@iZ4zeaehxxqhrn553tblkkZ /]#  java -version

https://blog.csdn.net/xiaoyu19910321/article/details/106291856

Where is the installation path?
https://blog.csdn.net/weixin_33542589/article/details/114470682?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-2.control&depth_1-utm_source=distribute.pc_relevant.none- task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-2.control

Configure environment variables

Use yum to install directly on CentOS8, and the environment variables are automatically configured
https://www.cnblogs.com/peach/p/13662082.html

Download and configure zookeeper

https://blog.csdn.net/root_zhb/article/details/116083452
Record several important steps‼
1. Installation path: /usr/local/zookeeper-3.4.9
2. Created a soft connection: /usr/local/zookeeper
3. Modified dataDir=/usr/local/zookeeper/data in the configuration file

start zookeeper

/usr/local/zookeeper/bin
server start

zkServer.sh start

client start

./zkCli.sh

After success see:
WATCHER::

WatchedEvent state:SyncConnected type:None path:null

View zookeeper nodes

ls /
get /zookeeper

Configure port 2181 firewall on Alibaba Cloud

Application type: Custom
Protocol: tcp
Port: 2181/2888 (here is casual, the Internet says 2181/2181, but the new rules do not allow the same port number to be written.
After the configuration is completed, there is no need to restart, and no need to use any command to enable Firewall takes effect
https://www.aliyunfuwuqi.com/help/2778/

Guess you like

Origin blog.csdn.net/kunAUGUST/article/details/118879535