Samba service and docker container installation configuration in the php development environment, sambadocker

Source: Internet
Author: User
Tags php development environment docker ps

Samba service and docker container installation configuration in the php development environment, sambadocker
Samba installation ConfigurationYum install samba-client samba-common modify smb. conf, it is best to back up the original file first to prevent smb from executing vi/etc/samba/smb due to incorrect modification. conf // configuration file [global] workgroup = WORKGROUPserver string = Samba Server % vnetbios name = centossecurity = usermap to guest = bad userdns proxy = no #====== ========================== Share Definitions ============================== =========== [dev] path =/data/webappbrowsable = yeswritable = yes guest OK = yes // end of the configuration file systemctl enable smb. servicesystemctl restart smb. service // samba restart modify firewall-cmd -- permanent -- zone = public -- add-service = sambafirewall-cmd -- reloadvi/etc/selinux/config modify SELINUX = permissive restart reboot right-click me computer, create A network drive mapped to it (A :) win access through \ Virtual Machine ip to see if the ing file can be accessed and added. Note that the ing file address is \ Virtual Machine ip \ dev docker run -- privileged = true- it -- name = php_dev_v2-v/data/webapp: /data/webapp-p 80: 80 192.168.1.xxx: xx/php7: v1.2/etc/rc. localdocker installation and PHP Development Environment Configuration

 

Modify php. in ini, It is yaf. library = "/data/webapp/yafext/" netstat-tunlp | grep 9000 stop the process kill 19/usr/local/php-7.0.2/sbin/php-fpm Modify/usr/local/nginx /sbin/nginx restart the nginx service/usr/local/nginx/sbin/nginx-s reload/usr/local/nginx/sbin/nginx-c/usr/local/nginx/conf /nginx. conf/usr/local/php/bin/phpize cd/usr/local/nginx/conf/sites cp demo.domain.com. conf xxx.domain.com. confvi xxxx.domain.com. conf: server {listen 80; server_name xx.xx.com; root/data/webapp/xx/[root directory]; ========================================================== ===. /configure -- with-php-config =/usr/local/php/bin/php-config -- prefix =/usr/local/libmemcached -- with-memcachedsudo make sudo make install/etc /init. d/php-fpmtar-zxvfhttp: // 192.168.1.xx/yaf/index/test/indexcp/usr/local/php-5.5/etc/php-fpm.conf.default php-fpm.conf. /configure -- prefix =/usr/local/php-7.0 -- enable-fpm -- enable-soap -- with-libxml-dir -- with-openssl -- with-mcrypt -- with-mhash --- pcre-regex -- with-sqlite3 -- with-zlib -- enable-bcmath -- with-iconv -- with-bz2 -- enable-calendar -- with-curl -- with-cdb -- enable-dom -- enable-exif -- enable-fileinfo -- enable-filter -- with-pcre-dir -- enable-ftp -- with-gd -- with-openssl-dir -- with-jpeg-dir -- with-png-dir -- with-zlib-dir -- with-freetype-dir -- enable-gd-native-ttf -- enable-gd-jis-conv -- with-gettext -- with-gmp -- with-mhash -- enable-json -- enable-mbstring -- disable-mbregex-backtrack -- with-libmbfl -- with-onig -- enable-pdo -- with-pdo-mysql -- with-zlib- dir -- with-pdo-sqlite -- with-readline -- enable-session -- enable-shmop -- enable-simplexml -- enable-sockets -- enable-sysvmsg -- enable-sysvsem -- enable-sysvshm -- enable-wddx -- with-libxml-dir -- with-xsl -- enable-zip -- enable-mysqlnd-compression-support -- with-pear: 1234567890 view the running container: docker ps-a start the existing container: docker start 1234567890 enter the bash interface of the running container: docker exec-it 1234567890/bin/bash enter the bash interface of the running container, start nginx and php, and then enter the bash interface: docker exec-it 1234567890/etc/rc. local * port firewall-cmd -- zone = public -- add-port = 80/tcp -- permanent * for enabling firewall restrictions to create a docker container (-- name to get the alias; -p specifies the port of the container corresponding to the local port)
docker run -it -d --name=yafdemo -v /etc/localtime:/etc/localtime:ro -v /data/webapp/www:/data/webapp/www:Z -p 83:80 10.5.3.xx:xx/php7:v1.7 /etc/rc.local
Delete container: docker rm 1234567890

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.