In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Httpd or nginx has been installed and cannot be accessed
Ports 1 and 80 are blocked by default if they are not documented.
2. Modify the service port and open it in the security group (httpd.conf or nginx.conf listen xx)
II. Mysql remote user login
1. Use port parameters-P
2. View the port used by mariadb
Cat / etc/my.cnf
Show global variables like 'port'
3. Modify mariadb port
Vim / etc/my.cnf modify or add port=xx
4. Remote login mysql-u root-h address-P port-p cannot be accessed
Check address login permissions select user,host,password from user
Check users and passwords
Use mysql
Alter user 'root'@'localhost' identified by' youpassword'
Flush privileges
5. Allow users to access the nextcloud_db database of the server (IP) through root, and set the password
Grant all privileges on nextcloud_db.* to root@ × × × identified by'× × ×'
Third, install php7.2
1. Yum install-y centos-release-scl
2. Yum install-y rh-php72 rh-php72-php rh-php72-php-gd rh-php72-php-mbstring rh-php72-php-intl rh-php72-php-pecl-apcu rh-php72-php-mysqlnd rh-php72-php-pecl-redis rh-php72-php-opcache rh-php72-php-imagick
Copy the setup-nextcloud.php file to the server directory
Rsync-avh / root/downloads/setup-nextcloud.php root@ × ×: / var/www/html/
V. nextcloud.php configuration
Chown-R apache:apache / var/www/html/nextcloud
Open the browser, access the service address, always download the PHP file, cannot open it
Modify the nginx.conf configuration file to add the following configuration:
Location ~ * .php ${
Try_files $uri = 404
Include fastcgi.conf
Fastcgi_pass 127.0.0.1:9000
Fastcgi_index index.php
}
Reference document: https://cloud.tencent.com/developer/ask/55032
Update mysql user password
Use mysql
Update user set authentication_string=password ('newword') where user='root'
Flush privileges
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.