This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker build -t name . | |
docker run -p 6060:8080 name | |
DOCKER commands: | |
# зaйти внутрь контенера | |
docker exec -it conteinername bash | |
# остановить все контейнеры | |
docker stop $(docker ps -a -q) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Commands ### | |
[command] [number] [moiton] | |
:q! - exit | |
:wq - exit save changes | |
:set number / :set nonumber - lines numbering | |
:!command - executes an external command | |
:command - executes an internal command |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
______________________________________________________________________________________________________________________________ | |
PHP | |
sudo apt update | |
sudo apt -y install software-properties-common | |
sudo add-apt-repository ppa:ondrej/php -y | |
sudo apt update | |
sudo apt -y install php7.4 php7.4-fpm php7.4-common php7.4-curl php7.4-cli php7.4-mysql php7.4-gd php7.4-xml php7.4-json php7.4-intl php-pear php7.4-dev php7.4-common php7.4-mbstring php7.4-zip php7.4-soap php7.4-bcmath php7.4-opcache | |
sudo apt -y install php7.3 php7.3-fpm php7.3-common php7.3-curl php7.3-cli php7.3-mysql php7.3-gd php7.3-xml php7.3-json php7.3-intl php-pear php7.3-dev php7.3-common php7.3-mbstring php7.3-zip php7.3-soap php7.3-bcmath php7.3-opcache |