Arm please vist code-server code-server arm
Datebase :You are advised to create a Docker container for the database
docker run -it -d \
--name vs-db \
-p 8003:3306 \
-e "MYSQL_ROOT_PASSWORD=code-server" \
mariadb:latest
# vs-db ipaddress
# $ docker exec -it vs-db bash
# $ apt update -y && apt upgrade -y && apt install net-tools iputils-ping
# $ ifconfig | grep inet | grep -E -o "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)"
Let’s go to code-server first
$ cat code-server/code-server.sh | grep ssh
/usr/sbin/sshd -D &
First, upload your certificate file to code-server, or drag your file to code-server to upload
vi /root/.config/code-server/config.yaml
bind-addr: 0.0.0.0:8080
auth: password
password: password
cert: true
Restart the code-server container
docker restart code-server
docker exec -it code-server /bin/zsh
cd /root/.local/share/code-server
cp /root/xrsec.key localhost.key
cp /root/xrsec.crt localhost.crt
exit
docker restart code-server
or vist web like https://localhost:8765/?folder=/www/bak/ssl_cert/
Then you can notice in the upper right corner that you need to configure SSL to use it
It’s like real code-server
php74-fpm && nginx
php54-fpm && nginx
Open https://localhost:8765/?folder=/www/wwwroot/myapp on the page
Breakpoint testing with PHP debug plug-in
Then visit the web page, such as https://localhost:31003/
pecl74 install
pecl56 install
/code-server.sh
/root/code-server/server/php/php56/lib/php.ini
/root/code-server/server/php/php74/lib/php.ini
/etc/nginx/nginx.conf
/etc/proxychains.conf
/etc/ssh/sshd_config
/root/.ssh
/root/.zshrc
/root/.pip/pip.conf
/root/.gitconfig
Then it will be displayed normally
ctrl + ~
Vim’s ESC button cannot be used on the command linevim 1
i
esc ????????
# You cannot use the ESC key to exit editing mode
# advice
# $ cat /etc/profile
# ctrl && Click file path The editor can be summoned
XRSec has the right to modify and interpret this article. If you want to reprint or disseminate this article, you must ensure the integrity of this article, including all contents such as copyright notice. Without the permission of the author, the content of this article shall not be modified or increased or decreased arbitrarily, and it shall not be used for commercial purposes in any way