BCLinux开源软件镜像手册-全能运行环境


  • BCLinux Developers

    BCLinux开源软件镜像手册-全能运行环境

    产品描述

    本镜像提供一个准备就绪的进行软件开发的全能环境,支持Nginx、Tomcat、PHP、Mariadb、Redis、MemCached、vsFTPD、OpenJDK、phpMyAdmin等组件。快捷方便,能够免去因管理和配置服务器而带来的繁重的运维任务,节省时间,让您更加专注于网站功能的开发。

    环境说明

    • 操作系统:BigCloud Enterprise Linux 7
    • 软件列表:
      • nginx-1.10.2
      • java-1.8.0-openjdk
      • tomcat-7.0.54
      • mariadb-5.5.50
      • php-5.4.16
      • redis-3.2.1
      • memcached-1.4.15
      • jemalloc-3.6.0
      • phpMyAdmin-4.4.15
      • vsftpd-3.0.2

    软件配置

    • Nginx配置文件路径:/etc/nginx/
    • Nginx网站主目录:/usr/share/nginx/html/
    • Nginx主配置文件:/etc/nginx/nginx.conf
    • Tomcat主配置文件:/etc/tomcat/
    • Tomcat网站主目录:/var/lib/tomcat/webapps/ROOT/
    • Mariadb主配置文件:/etc/my.cnf
    • PHP主配置文件:/etc/php.ini
    • Memcached主配置文件:/etc/sysconfig/memcached
    • PHP Memcached扩展配置:/etc/php.d/memcache.ini
    • Redis主配置文件:/etc/redis.conf
    • PHP Redis扩展配置:/etc/php.d/redis.ini
    • vsFTPD主配置文件:/etc/vsftpd/vsftpd.conf

    使用说明

    • Tomcat服务主页:http://IP,默认账号密码:admin/bclinux

    • 默认管理FTP账号密码:nginx/bclinux,默认根目录:/usr/share/nginx/html/
    [root@demo-bclinux-7 ~]# ftp 192.168.10.59
    Connected to 192.168.10.59 (192.168.10.59).
    220 (vsFTPd 3.0.2)
    Name (192.168.10.59:root): nginx
    331 Please specify the password.
    Password:
    230 Login successful.
    Remote system type is UNIX.
    Using binary mode to transfer files.
    ftp> ls
    227 Entering Passive Mode (192,168,10,59,236,160).
    150 Here comes the directory listing.
    -rw-r--r--    1 995      992          3650 Oct 31 12:37 404.html
    -rw-r--r--    1 995      992          3693 Oct 31 12:37 50x.html
    -rw-r--r--    1 995      992          3700 Oct 31 12:37 index.html
    -rw-r--r--    1 995      992            24 Dec 19 04:09 index.php
    -rw-r--r--    1 995      992           368 Oct 31 12:37 nginx-logo.png
    lrwxrwxrwx    1 0        0              22 Dec 19 04:10 phpMyAdmin -> /usr/share/phpMyAdmin/
    -rw-r--r--    1 995      992          2811 Oct 31 12:37 poweredby.png
    226 Directory send OK.
    ftp> exit
    221 Goodbye.
    
    • 默认数据库账号密码:root/bclinux,默认存放目录:/var/lib/mysql
    [root@demo-bclinux-7 ~]# mysql -u root -p
    Enter password:
    Welcome to the MariaDB monitor.  Commands end with ; or \g.
    Your MariaDB connection id is 10
    Server version: 5.5.50-MariaDB MariaDB Server
    
    Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
    
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    
    MariaDB [(none)]>
    
    • 创建FTP虚拟账号fuser1,密码bclinux
    [root@demo-bclinux-7 ~]# mkdir -p /data/www
    [root@demo-bclinux-7 ~]# chown nginx:nginx /data/www
    [root@demo-bclinux-7 ~]# vim /etc/vsftpd/ftpuser.txt
    [root@demo-bclinux-7 ~]# cat > /etc/vsftpd/vsftpd_user_conf/fuser1 <<EOF
    > anon_world_readable_only=NO
    > write_enable=YES
    > anon_upload_enable=YES
    > anon_mkdir_write_enable=YES
    > anon_other_write_enable=YES
    > local_root=/data/www/
    > EOF
    [root@demo-bclinux-7 ~]# systemctl restart vsftpd
    [root@demo-bclinux-7 ~]# ftp localhost
    Trying ::1...
    Connected to localhost (::1).
    220 (vsFTPd 3.0.2)
    Name (localhost:root): fuser1
    331 Please specify the password.
    Password:
    230 Login successful.
    Remote system type is UNIX.
    Using binary mode to transfer files.
    ftp>
    ftp> ls
    229 Entering Extended Passive Mode (|||63449|).
    150 Here comes the directory listing.
    226 Directory send OK.
    ftp> exit
    221 Goodbye.
    

    服务管理

    • Nginx Server:
    systemctl { enable | start | status | restart | reload } nginx
    
    • Tomcat Server:
    systemctl { enable | start | status | restart } tomcat
    
    • Mariadb:
    systemctl { enable | start | status | restart } mariadb
    
    • vsFTPD:
    systemctl { enable | start | status | restart } vsftpd
    

登录后回复
 

与 BC-LINUX 的连接断开,我们正在尝试重连,请耐心等待