初始化CentOS7.8

[root@ecm-24d4 ~]# cd /
[root@ecm-24d4 /]# ls
/////////////////////////////////////////////////
bin  boot  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var
/////////////////////////////////////////////////
[root@ecm-24d4 /]# cat etc/os-release
/////////////////////////////////////////////////
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
/////////////////////////////////////////////////
[root@ecm-24d4 /]#yum upgrade
/////////////////////////////////////////////////
... ...
  xz-libs.x86_64 0:5.2.2-2.el7_9                                 yum.noarch 0:3.4.3-168.el7.centos                            zlib.x86_64 0:1.2.7-21.el7_9 
Complete!
/////////////////////////////////////////////////
[root@ecm-24d4 /]# yum upgrade
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
No packages marked for update
[root@ecm-24d4 /]# yum install -y wget && wget -O install.sh https://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec
/////////////////////////////////////////////////
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package wget-1.14-18.el7_6.1.x86_64 already installed and latest version
Nothing to do
--2023-09-13 17:14:22--  https://download.bt.cn/install/install_6.0.sh
Resolving download.bt.cn (download.bt.cn)... 42.157.129.47, 240e:a5:4200:89::256
Connecting to download.bt.cn (download.bt.cn)|42.157.129.47|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 34553 (34K) [application/octet-stream]
Do you want to install Bt-Panel to the /www directory now?(y/n): y
... ...
Starting Bt-Panel... Bt-Panel (pid 6110) already running
Starting Bt-Tasks... Bt-Tasks (pid 6129) already running
username: ft9hoy1u
Stopping Bt-Tasks...    done
Stopping Bt-Panel...    done
Starting Bt-Panel....   done
Starting Bt-Tasks...    done
/////////////////////////////////////////////////
云服务器安全组开通9999端口,宝塔面板放行9999端口
/////////////////////////////////////////////////
[root@ecm-24d4 /]#bt
/////////////////////////////////////////////////
更改面板端口为9999,更改用户名Robert密码**** 更改安全入口/bthome
/////////////////////////////////////////////////
[root@ecm-24d4 /]# echo '9999' > /www/server/panel/data/port.pl && /etc/init.d/bt restart
[root@ecm-24d4 /]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
No packages marked for update
/////////////////////////////////////////////////
进入宝塔面板安装nginx和MySQL5.7 PHP7.4 安装好后在宝塔面板修改root密码设置root可远程登录
/////////////////////////////////////////////////
Last login: Wed Sep 13 16:09:49 2023 from 127.0.0.1
[root@ecm-24d4 ~]# mysql -uroot -p
/////////////////////////////////////////////////
Enter password: 
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.7.40-log Source distribution

Copyright (c) 2000, 2022, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '19940722Fyy' WITH GRANT OPTION;
Query OK, 0 rows affected, 1 warning (0.01 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)

mysql> 
/////////////////////////////////////////////////

[root@ecm-24d4 /]# ip addr show
[root@ecm-24d4 /]# poweroff

Leave a Reply

Your email address will not be published. Required fields are marked *