[root@server mysql-5.7.17]#Make
[root@server mysql-5.7.17]#Make install
[root@server mysql-5.7.17]# cd /usr/local/lnmp/mysql
[root@server mysql]# ls
bin COPYING docs include lib man mysql-test README share support-files
[root@server mysql]# rpm -qa | grep mysql
mysql-libs-5.1.71-1.el6.x86_64
[root@server mysql]# cat /etc/my.cnf
[root@server support-files]# ls
magic my-default.cnf mysqld_multi.server mysql-log-rotate mysql.server
[root@server support-files]# cp my-default.cnf /etc/my.cnf
cp: overwrite `/etc/my.cnf'? y
[root@server support-files]# ls
magic my-default.cnf mysqld_multi.server mysql-log-rotate mysql.server
[root@server support-files]# file mysql.server
mysql.server: POSIX shell script text executable
[root@server support-files]# vim /etc/my.cnf
[root@server support-files]# cp mysql.server /etc/init.d/mysqld
[root@server support-files]# ll /etc/init.d/mysqld
-rwxr-xr-x 1 root root 10916 Aug 5 03:04 /etc/init.d/mysqld
[root@server support-files]# cd ..
[root@server mysql]# ls
bin COPYING docs include lib man mysql-test README share support-files
[root@server mysql]# pwd
/usr/local/lnmp/mysql
[root@server mysql]# ll
total 56
drwxr-xr-x 2 root root 4096 Aug 5 02:34 bin
-rw-r--r-- 1 root root 17987 Nov 28 2016 COPYING
drwxr-xr-x 2 root root 4096 Aug 5 02:33 docs
drwxr-xr-x 3 root root 4096 Aug 5 02:33 include
drwxr-xr-x 4 root root 4096 Aug 5 02:34 lib
drwxr-xr-x 4 root root 4096 Aug 5 02:33 man
drwxr-xr-x 10 root root 4096 Aug 5 02:34 mysql-test
-rw-r--r-- 1 root root 2478 Nov 28 2016 README
drwxr-xr-x 28 root root 4096 Aug 5 02:34 share
drwxr-xr-x 2 root root 4096 Aug 5 02:34 support-files
[root@server mysql]# id mysql
id: mysql: No such user
[root@server mysql]# groupadd -g 27 mysql
[root@server mysql]# useradd -u 27 -g 27 -M -d /usr/local/lnmp/mysql/data -s /sbin/nologin mysql
[root@server mysql]# ll
[root@server mysql]# chown -R mysql.mysql .
[root@server mysql]# ll
[root@server bin]# pwd
/usr/local/lnmp/mysql/bin
[root@server bin]# cd
[root@server ~]# source .bash_profile
[root@server ~]# mysql_install_db
2018-08-05 03:14:45 [WARNING] mysql_install_db is deprecated. Please consider switching to mysqld --initialize
2018-08-05 03:14:45 [ERROR] The data directory needs to be specified.
[root@server ~]# ls
cmake-2.8.12.2-4.el6.x86_64.rpm mysql-5.7.17 mysql-boost-5.7.17.tar.gz
[root@server ~]# cd /usr/local/
[root@server local]# cd lnmp/mysql/
[root@server mysql]# ls
bin COPYING docs include lib man mysql-test README share support-files
[root@server mysql]# ll
[root@server mysql]# mysqld --initialize --user=mysql 初始化
2018-08-04T19:16:21.762888Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-08-04T19:16:21.762965Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2018-08-04T19:16:21.762970Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set.
2018-08-04T19:16:24.123398Z 0 [Warning] InnoDB: New log files created, LSN=45790
2018-08-04T19:16:24.590953Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2018-08-04T19:16:24.747103Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: e112b312-981a-11e8-ba28-525400fc7a18.
2018-08-04T19:16:24.817791Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2018-08-04T19:16:24.819486Z 1 [Note] A temporary password is generated for root@localhost: TRLkC3jld>fJ(初始密码)
[root@server mysql]# ls
bin data include man README support-files
COPYING docs lib mysql-test share
[root@server mysql]# cd data/
[root@server data]# ls
auto.cnf ibdata1 ib_logfile1 performance_schema
ib_buffer_pool ib_logfile0 mysql sys
[root@server data]# ll
[root@server data]# cd ..
[root@server mysql]# ls
bin data include man README support-files
COPYING docs lib mysql-test share
[root@server mysql]# ll
[root@server mysql]# /etc/init.d/mysqld start
Starting MySQL.Logging to '/usr/local/lnmp/mysql/data/server.err'.
. SUCCESS!
[root@server mysql]# /etc/init.d/mysqld stop
Shutting down MySQL. SUCCESS!
[root@server mysql]# chown root .-R
chown: cannot access `.-R': No such file or directory
[root@server mysql]# chown root . -R
[root@server mysql]# ll
total 60
drwxr-xr-x 2 root mysql 4096 Aug 5 02:34 bin
-rw-r--r-- 1 root mysql 17987 Nov 28 2016 COPYING
drwxr-x--- 5 root mysql 4096 Aug 5 03:19 data
drwxr-xr-x 2 root mysql 4096 Aug 5 02:33 docs
drwxr-xr-x 3 root mysql 4096 Aug 5 02:33 include
drwxr-xr-x 4 root mysql 4096 Aug 5 02:34 lib
drwxr-xr-x 4 root mysql 4096 Aug 5 02:33 man
drwxr-xr-x 10 root mysql 4096 Aug 5 02:34 mysql-test
-rw-r--r-- 1 root mysql 2478 Nov 28 2016 README
drwxr-xr-x 28 root mysql 4096 Aug 5 02:34 share
drwxr-xr-x 2 root mysql 4096 Aug 5 02:34 support-files
[root@server mysql]# chgrp root . -R
[root@server mysql]# ll
total 60
drwxr-xr-x 2 root root 4096 Aug 5 02:34 bin
-rw-r--r-- 1 root root 17987 Nov 28 2016 COPYING
drwxr-x--- 5 root root 4096 Aug 5 03:19 data
drwxr-xr-x 2 root root 4096 Aug 5 02:33 docs
drwxr-xr-x 3 root root 4096 Aug 5 02:33 include
drwxr-xr-x 4 root root 4096 Aug 5 02:34 lib
drwxr-xr-x 4 root root 4096 Aug 5 02:33 man
drwxr-xr-x 10 root root 4096 Aug 5 02:34 mysql-test
-rw-r--r-- 1 root root 2478 Nov 28 2016 README
drwxr-xr-x 28 root root 4096 Aug 5 02:34 share
drwxr-xr-x 2 root root 4096 Aug 5 02:34 support-files
[root@server mysql]# chown mysql data -R
[root@server mysql]# ll
total 60
drwxr-xr-x 2 root root 4096 Aug 5 02:34 bin
-rw-r--r-- 1 root root 17987 Nov 28 2016 COPYING
drwxr-x--- 5 mysql root 4096 Aug 5 03:19 data
drwxr-xr-x 2 root root 4096 Aug 5 02:33 docs
drwxr-xr-x 3 root root 4096 Aug 5 02:33 include
drwxr-xr-x 4 root root 4096 Aug 5 02:34 lib
drwxr-xr-x 4 root root 4096 Aug 5 02:33 man
drwxr-xr-x 10 root root 4096 Aug 5 02:34 mysql-test
-rw-r--r-- 1 root root 2478 Nov 28 2016 README
drwxr-xr-x 28 root root 4096 Aug 5 02:34 share
drwxr-xr-x 2 root root 4096 Aug 5 02:34 support-files
[root@server mysql]# /etc/init.d/mysqld start
Starting MySQL.. SUCCESS!
[root@server mysql]# mysql_secure_installation (安全证书设置)
进去更改密码----n-------n------y------y------y
Securing the MySQL server deployment.
Enter password for user root:
The existing password for the user account root has expired. Please set a new password.
New password:
Re-enter new password:
VALIDATE PASSWORD PLUGIN can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD plugin?
Press y|Y for Yes, any other key for No: n
Using existing password for root.
Change the password for root ? ((Press y|Y for Yes, any other key for No) :
... skipping.
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL without having to have
a user account created for them. This is intended only for
testing, and to make the installation go a bit smoother.
You should remove them before moving into a production
environment.
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Success.
Normally, root should only be allowed to connect from
'localhost'. This ensures that someone cannot guess at
the root password from the network.
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y
Success.
By default, MySQL comes with a database named 'test' that
anyone can access. This is also intended only for testing,
and should be removed before moving into a production
environment.
Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y
- Dropping test database...
Success.
- Removing privileges on test database...
Success.
Reloading the privilege tables will ensure that all changes
made so far will take effect immediately.
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Success.
All done!
[root@server mysql]# mysql -p
[root@server ~]# ls
cmake-2.8.12.2-4.el6.x86_64.rpm mysql-boost-5.7.17.tar.gz
mysql-5.7.17 php-5.6.35.tar.bz2
[root@server ~]# tar jxf php-5.6.35.tar.bz2
[root@server ~]# ls
cmake-2.8.12.2-4.el6.x86_64.rpm mysql-boost-5.7.17.tar.gz php-5.6.35.tar.bz2
mysql-5.7.17 php-5.6.35
[root@server ~]# cd php-5.6.35
[root@server php-5.6.35]# ./configure --prefix=/usr/local/lnmp/php --with-config-file-path=/usr/local/lnmp/php/etc --with-mysql=mysqlnd --enable-mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-openssl --with-snmp --with-gd --with-zlib --with-curl --with-libxml-dir --with-png-dir --with-jpeg-dir --with-freetype-dir --with-pear --with-gettext --with-gmp --enable-inline-optimization --enable-soap --enable-ftp --enable-sockets --enable-mbstring --enable-fpm --with-fpm-user=nginx --with-fpm-group=nginx --with-mcrypt --with-mhash
[root@server php-5.6.35]# yum install libxml2-devel
[root@server php-5.6.35]# yum install -y openssl-devel
[root@server php-5.6.35]# yum install -y curl-devel
[root@server ~]# ls
cmake-2.8.12.2-4.el6.x86_64.rpm mysql-boost-5.7.17.tar.gz re2c-0.13.5-1.el6.x86_64.rpm
gd-devel-2.0.35-11.el6.x86_64.rpm php-5.6.35
mysql-5.7.17 php-5.6.35.tar.bz2
[root@server ~]# yum install -y gd-devel-2.0.35-11.el6.x86_64.rpm
[root@server ~]# yum install -y gmp-devel
[root@server ~]# ls
cmake-2.8.12.2-4.el6.x86_64.rpm mysql-boost-5.7.17.tar.gz
gd-devel-2.0.35-11.el6.x86_64.rpm php-5.6.35
libmcrypt-2.5.8-9.el6.x86_64.rpm php-5.6.35.tar.bz2
libmcrypt-devel-2.5.8-9.el6.x86_64.rpm re2c-0.13.5-1.el6.x86_64.rpm
mysql-5.7.17
[root@server ~]# yum install libmcrypt-devel-2.5.8-9.el6.x86_64.rpm libmcrypt-2.5.8-9.el6.x86_64.rpm -y
[root@server ~]# yum install net-snmp-devel
[root@server ~]# rpm -ivh re2c-0.13.5-1.el6.x86_64.rpm
warning: re2c-0.13.5-1.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing... ########################################### [100%]
1:re2c ########################################### [100%]
[root@server ~]# ls
cmake-2.8.12.2-4.el6.x86_64.rpm mysql-boost-5.7.17.tar.gz
gd-devel-2.0.35-11.el6.x86_64.rpm php-5.6.35
libmcrypt-2.5.8-9.el6.x86_64.rpm php-5.6.35.tar.bz2
libmcrypt-devel-2.5.8-9.el6.x86_64.rpm re2c-0.13.5-1.el6.x86_64.rpm
mysql-5.7.17
[root@server php-5.6.35]# ./configure --prefix=/usr/local/lnmp/php --with-config-file-path=/usr/local/lnmp/php/etc --with-mysql=mysqlnd --enable-mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-openssl --with-snmp --with-gd --with-zlib --with-curl --with-libxml-dir --with-png-dir --with-jpeg-dir --with-freetype-dir --with-pear --with-gettext --with-gmp --enable-inline-optimization --enable-soap --enable-ftp --enable-sockets --enable-mbstring --enable-fpm --with-fpm-user=nginx --with-fpm-group=nginx --with-mcrypt --with-mhash
[root@server php-5.6.35]#make && make install
[root@server php-5.6.35]# cd /usr/local/lnmp/php
[root@server php]# ls
bin etc include lib php sbin var
[root@server php]# cd etc/
[root@server etc]# ls
pear.conf php-fpm.conf.default
[root@server etc]# cp php-fpm.conf.default php-fpm.conf
[root@server etc]# ls
pear.conf php-fpm.conf php-fpm.conf.default
[root@server etc]# cd
[root@server ~]# ls
cmake-2.8.12.2-4.el6.x86_64.rpm mysql-boost-5.7.17.tar.gz
gd-devel-2.0.35-11.el6.x86_64.rpm php-5.6.35
libmcrypt-2.5.8-9.el6.x86_64.rpm php-5.6.35.tar.bz2
libmcrypt-devel-2.5.8-9.el6.x86_64.rpm re2c-0.13.5-1.el6.x86_64.rpm
mysql-5.7.17
[root@server ~]# cd mysql-5.7.17/
[root@server mysql-5.7.17]# cd
[root@server ~]# cd php-5.6.35
[root@server php-5.6.35]# ls
[root@server php-5.6.35]# cp php.ini-production /usr/local/lnmp/php/etc/php.ini
[root@server php-5.6.35]# cd
[root@server ~]# ls
cmake-2.8.12.2-4.el6.x86_64.rpm mysql-boost-5.7.17.tar.gz
gd-devel-2.0.35-11.el6.x86_64.rpm php-5.6.35
libmcrypt-2.5.8-9.el6.x86_64.rpm php-5.6.35.tar.bz2
libmcrypt-devel-2.5.8-9.el6.x86_64.rpm re2c-0.13.5-1.el6.x86_64.rpm
mysql-5.7.17
[root@server ~]# cd /usr/local/lnmp/php/
[root@server php]# ls
bin etc include lib php sbin var
[root@server php]# cd etc
[root@server etc]# ls
pear.conf php-fpm.conf php-fpm.conf.default php.ini
[root@server etc]# vim php.ini
[root@server etc]# vim php-fpm.conf
[root@server etc]# id nginx
id: nginx: No such user
[root@server etc]# useradd -M -d /usr/local/lnmp/nginx -s /sbin/nologin nginx
[root@server etc]# ls
pear.conf php-fpm.conf php-fpm.conf.default php.ini
[root@server etc]# id nginx
uid=500(nginx) gid=500(nginx) groups=500(nginx)
[root@server etc]# cd
[root@server ~]# cd php-5.6.35
[root@server php-5.6.35]# cd scripts/
[root@server scripts]# ls
apache dev Makefile.frag man1 php-config php-config.in phpize phpize.in phpize.m4
[root@server scripts]# cd ..
[root@server php-5.6.35]# cd sapi/
[root@server sapi]# ls
aolserver apache2handler cgi embed litespeed phpdbg roxen tux
apache apache_hooks cli fpm milter phttpd tests webjames
apache2filter caudium continuity isapi nsapi pi3web thttpd
[root@server sapi]# cd fpm/
[root@server fpm]# ls
config.m4 init.d.php-fpm.in php-fpm.8 php-fpm.service tests
CREDITS LICENSE php-fpm.8.in php-fpm.service.in www.conf.in
fpm Makefile.frag php-fpm.conf status.html
init.d.php-fpm php-fpm php-fpm.conf.in status.html.in
[root@server fpm]# file init.d.php-fpm
init.d.php-fpm: POSIX shell script text executable
[root@server fpm]# cp init.d.php-fpm /etc/init.d/php-fpm
[root@server fpm]# chmod +x /etc/init.d/php-fpm
[root@server fpm]# /etc/init.d/php-fpm start
Starting php-fpm done
[root@server fpm]# cd
[root@server ~]# ls
cmake-2.8.12.2-4.el6.x86_64.rpm mysql-boost-5.7.17.tar.gz
gd-devel-2.0.35-11.el6.x86_64.rpm php-5.6.35
libmcrypt-2.5.8-9.el6.x86_64.rpm php-5.6.35.tar.bz2
libmcrypt-devel-2.5.8-9.el6.x86_64.rpm re2c-0.13.5-1.el6.x86_64.rpm
mysql-5.7.17
[root@server ~]# ls
cmake-2.8.12.2-4.el6.x86_64.rpm nginx-1.10.1.tar.gz
gd-devel-2.0.35-11.el6.x86_64.rpm nginx-sticky-module-ng.tar.gz
libmcrypt-2.5.8-9.el6.x86_64.rpm php-5.6.35
libmcrypt-devel-2.5.8-9.el6.x86_64.rpm php-5.6.35.tar.bz2
mysql-5.7.17 re2c-0.13.5-1.el6.x86_64.rpm
mysql-boost-5.7.17.tar.gz
[root@server ~]# tar zxf nginx-1.10.1.tar.gz
[root@server ~]# tar zxf nginx-sticky-module-ng.tar.gz
[root@server ~]# ls
cmake-2.8.12.2-4.el6.x86_64.rpm nginx-1.10.1.tar.gz
gd-devel-2.0.35-11.el6.x86_64.rpm nginx-sticky-module-ng
libmcrypt-2.5.8-9.el6.x86_64.rpm nginx-sticky-module-ng.tar.gz
libmcrypt-devel-2.5.8-9.el6.x86_64.rpm php-5.6.35
mysql-5.7.17 php-5.6.35.tar.bz2
mysql-boost-5.7.17.tar.gz re2c-0.13.5-1.el6.x86_64.rpm
nginx-1.10.1
[root@server ~]# cd nginx-1.10.1
[root@server nginx-1.10.1]# ls
auto CHANGES CHANGES.ru conf configure contrib html LICENSE man README src
[root@server nginx-1.10.1]# vim src/core/nginx.h
[root@server nginx-1.10.1]# vim auto/cc/gcc
[root@server nginx-1.10.1]# ./configure --help
[root@server nginx-1.10.1]# ./configure --prefix=/usr/local/lnmp/nginx --with-http_ssl_module --with-http_stub_status_module --user=nginx --group=nginx --with-threads --with-file-aio
[root@server nginx-1.10.1]# yum install pcre-devel -y
[root@server nginx-1.10.1]# ./configure --prefix=/usr/local/lnmp/nginx --with-http_ssl_module --with-http_stub_status_module --user=nginx --group=nginx --with-threads --with-file-aio
[root@server nginx-1.10.1]# make && make install
[root@server nginx-1.10.1]# cd /usr/local/
[root@server local]# ls
bin etc games include lib lib64 libexec lnmp sbin share src
[root@server local]# cd lnmp/
[root@server lnmp]# ls
mysql nginx php
[root@server lnmp]# cd nginx/
[root@server nginx]# ls
conf html logs sbin
[root@server nginx]# pwd
/usr/local/lnmp/nginx
[root@server nginx]# cd conf/
[root@server conf]# vim nginx.conf
[root@server conf]# vim /etc/security/limits.conf
[root@server conf]# sysctl -a |grep file
fs.file-nr = 608 0 291270
fs.file-max = 291270
[root@server conf]# vim nginx.conf
[root@server conf]# cd /usr/local/lnmp/nginx/sbin/
[root@server sbin]# cd
[root@server ~]# vim .bash_profile
[root@server ~]# source .bash_profile
[root@server ~]# nginx -t
nginx: the configuration file /usr/local/lnmp/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/lnmp/nginx/conf/nginx.conf test is successful
[root@server ~]# nginx
[root@server ~]# cd /usr/local/lnmp/nginx/html/
[root@server html]# ls
50x.html index.html
[root@server html]# vim index.php
[root@server html]# cd ..
[root@server nginx]# cd conf/
[root@server conf]# vim nginx.conf
[root@server conf]# nginx -s reload
[root@server conf]# pwd
/usr/local/lnmp/nginx/conf
[root@server conf]# cd
[root@server ~]# ls
cmake-2.8.12.2-4.el6.x86_64.rpm mysql-5.7.17 nginx-sticky-module-ng.tar.gz
Discuz_X3.2_SC_UTF8.zip mysql-boost-5.7.17.tar.gz php-5.6.35
gd-devel-2.0.35-11.el6.x86_64.rpm nginx-1.10.1 php-5.6.35.tar.bz2
libmcrypt-2.5.8-9.el6.x86_64.rpm nginx-1.10.1.tar.gz re2c-0.13.5-1.el6.x86_64.rpm
libmcrypt-devel-2.5.8-9.el6.x86_64.rpm nginx-sticky-module-ng
[root@server ~]# yum install -y unzip
Loaded plugins: product-id, subscription-manager
[root@server ~]# unzip Discuz_X3.2_SC_UTF8.zip -d /usr/local/lnmp/nginx/html/
Archive: Discuz_X3.2_SC_UTF8.zip
creating: /usr/local/lnmp/nginx/html/readme/
[root@server ~]# cd /usr/local/lnmp/
[root@server lnmp]# ls
mysql nginx php
[root@server lnmp]# cd nginx/
[root@server nginx]# ls
client_body_temp conf fastcgi_temp html logs proxy_temp sbin scgi_temp uwsgi_temp
[root@server nginx]# cd html/
[root@server html]# ls
50x.html index.html index.php readme upload utility
[root@server html]# cd upload/
[root@server upload]# ls
admin.php archiver cp.php favicon.ico home.php member.php portal.php source uc_client
api config crossdomain.xml forum.php index.php misc.php robots.txt static uc_server
api.php connect.php data group.php install plugin.php search.php template userapp.php
[root@server upload]# cd ..
[root@server html]# ls
50x.html index.html index.php readme upload utility
[root@server html]# mv upload/ bbs
[root@server html]# cd bbs
[root@server bbs]# ls
admin.php archiver cp.php favicon.ico home.php member.php portal.php source uc_client
api config crossdomain.xml forum.php index.php misc.php robots.txt static uc_server
api.php connect.php data group.php install plugin.php search.php template userapp.php
[root@server bbs]# chmod 777 config/ data/ uc_server/ uc_client/ -R
[root@server etc]# vim /etc/my.cnf
socket = /usr/local/lnmp/mysql/data/mysql.sock
[root@server etc]# vim php.ini
[root@server etc]# /etc/init.d/php-fpm reload
Reload service php-fpm done
[root@server etc]# pwd
/usr/local/lnmp/php/etc
[root@server etc]# cd /usr/local/lnmp/mysql/
[root@server mysql]# ll
total 60
drwxr-xr-x 2 root root 4096 Aug 5 02:34 bin
-rw-r--r-- 1 root root 17987 Nov 28 2016 COPYING
drwxr-x--- 5 mysql root 4096 Aug 5 03:52 data
drwxr-xr-x 2 root root 4096 Aug 5 02:33 docs
drwxr-xr-x 3 root root 4096 Aug 5 02:33 include
drwxr-xr-x 4 root root 4096 Aug 5 02:34 lib
drwxr-xr-x 4 root root 4096 Aug 5 02:33 man
drwxr-xr-x 10 root root 4096 Aug 5 02:34 mysql-test
-rw-r--r-- 1 root root 2478 Nov 28 2016 README
drwxr-xr-x 28 root root 4096 Aug 5 02:34 share
drwxr-xr-x 2 root root 4096 Aug 5 02:34 support-files
[root@server mysql]# chmod 755 data/
[root@server mysql]# ll
total 60
drwxr-xr-x 2 root root 4096 Aug 5 02:34 bin
-rw-r--r-- 1 root root 17987 Nov 28 2016 COPYING
drwxr-xr-x 5 mysql root 4096 Aug 5 03:52 data
drwxr-xr-x 2 root root 4096 Aug 5 02:33 docs
drwxr-xr-x 3 root root 4096 Aug 5 02:33 include
drwxr-xr-x 4 root root 4096 Aug 5 02:34 lib
drwxr-xr-x 4 root root 4096 Aug 5 02:33 man
drwxr-xr-x 10 root root 4096 Aug 5 02:34 mysql-test
-rw-r--r-- 1 root root 2478 Nov 28 2016 README
drwxr-xr-x 28 root root 4096 Aug 5 02:34 share
drwxr-xr-x 2 root root 4096 Aug 5 02:34 support-files
[root@server mysql]# cd /usr/local/lnmp/nginx/html
[root@server html]# cd bbs
[root@server bbs]# ls
admin.php archiver cp.php favicon.ico home.php member.php portal.php source uc_client
api config crossdomain.xml forum.php index.php misc.php robots.txt static uc_server
api.php connect.php data group.php install plugin.php search.php template userapp.php
[root@server bbs]# pwd
/usr/local/lnmp/nginx/html/bbs
[root@server bbs]# cd install/
[root@server install]# pwd
/usr/local/lnmp/nginx/html/bbs/install
[root@server install]# rm -fr index.php