• MySQL reset password and allow remote access


    ​ I Reset password 1. Know the root password of the original myql Method 1: By logging in to the MySQL system, mysql -uroot -p Enter password: [enter original password] mysql>use mysql; mysql> update user set authentication_string=passworD(“test123”) wher user=’root’; mysql> flush privileges; mysql> exit; Method 2: Outside the MySQL system, use mysqladmin mysqladmin -u root […]

  • Linux Firewall commands


    preface Firewall command service restart networkThe command can be usedsystemctl restart networkreplace 1、 systemctl Systemctl unmask firewalld # execute the command to unlock the service Systemctl mask firewalld # execute when the service needs to be locked next time systemctl start firewalld. Service # start firewall systemctl stop firewalld. Service # stop firewall systemctl reloadt […]

  • Centos7 system environment configuration of docker actual combat


    This document details the actual operation of dockerCentOS7 system environment configuration to prepare for later installation of docker. 0 optimize the environment Directly copy the following code to optimize the environment. If the code is executed, the next steps 1 and 2 can be omitted. sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/’ /etc/selinux/config &> /dev/nullsetenforce 0systemctl stop firewalldsystemctl disable […]

  • CentOS 7 firewall settings


    1. View the system version When setting up a firewall, first check the Linux system version. lsb_release -a Centos7 system does not have this command cat /etc/redhat-release(/etc/centos-release) Output: CentOS Linux release 7.4 1708 (Core) This command is available for both centos6 and centos7. The etc folder in Linux system is mainly used to store some […]

  • Article applet full stack development, from entry to launch, Section 8 – deployment and launch


    1. Nginx configuration file 1) Upload certificate file to/usr/local/nginx/sslkey/No directory can be created under the directory. 2) Newnginx.conf, its configuration is as follows: user root; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } http { include mime.types; fastcgi_buffers 8 16k; fastcgi_buffer_size 32k; fastcgi_connect_timeout 300; fastcgi_send_timeout 300; […]

  • Windows remote connection CentOS and flash back exception resolution record


    Usually, the environment for writing code in the school laboratory is Linux system. After going home on vacation, the performance of the notebook and the system are somewhat inconvenient. Therefore, use the server to install idea for programming, and record the installation of remote desktop and the solutions to the problems. I Install centos7 remote […]

  • . NETCORE project Linux deployment summary


    Linux deployment documentation 1. Common instructions Find [/ root directory. Current directory] – name [file name] – find file path PS aux | grep [program name] – query startup status PS – EF | grep [program name] – query startup status Ls — view all files in the directory Kill – 9 PID — delete […]

  • [original notes] one of cicd series: installing gitlab


    One of cicd series: installing gitlab Prepare host: 1. Turn off the firewall and SELinux systemctl stop firewalld systemctl disable firewalld sed -i ‘s/enforcing/disabled/’ /etc/selinux/config setenforce 0 2. Install docker 3. Install docker compose Download the docker compose component for your current Linux version sudo curl -L “https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m)” -o /usr/local/bin/docker-compose Add execution […]

  • Precautions after CentOS 7 installation (III)


    3、 Firewall basic configuration The firewall in centos7 is changed from IPtable in centos6 to firewalld, so we need to initially configure firewalld: 1. Enable / disable firewall service Start a service:systemctl start firewalld.serviceShut down a service:systemctl stop firewalld.serviceRestart a service:systemctl restart firewalld.serviceDisplays the status of a service:systemctl status firewalld.serviceEnable a service at boot time:systemctl […]

  • Docker – about the connectivity between docker containers and between containers and host computers


    1、 Connectivity between container and host Check host firewall statusIf you can turn off the host firewall, you can communicate.If the firewall cannot be closed, the host related interface can be opened and the access ID can be allowedNote: the open IP must be the virtual IP of the container on the host, not the […]

  • Linux basic firewall settings and open port commands


    Turn off firewall CentOS 7、RedHat 7Firewall on and off in previous Linux distributions(iptables ): Immediate effect, restartinvalid #Open service iptables start #Shut down service iptables stop restarttake effect #Open chkconfig iptables on #Shut down chkconfig iptables off CentOS 7、RedHat 7Firewall on and off for subsequent Linux distributions(firewall ): systemctl stop firewalld.service Open port CentOS 7、RedHat […]

  • CentOS 5.4 firewall configuration method of port 80 (applicable to CentOS 5.3 and above)


    Friends who often use CentOS may encounter the same problems as me. Recently, when installing and configuring Oracle database under Linux CentOS firewall, it always shows that EM installation fails due to network port, so I intend to close CentOS firewall first. I happened to see the configuration and operation instructions of CentOS firewall. I […]