I have been unable to find a suitable development environment under Win10, and I don’t want to install a virtual machine, so I use the WSL that comes with Win10 to install the Linux environment
Tested under Win10 Installed three versions of Ubuntu 22, 20, and 18 for testing
There is no problem installing the pagoda, but both are stuck on the database
If the given IP address is incorrect after installing Pagoda, please use ifconfig in the command window to query the intranet IP to link to the control panel
The panel installation database shows that the operation is successful, but the panel operation database is displayed as 'database connection failed, please check whether the database service is started!'
Later, I searched for related articles, and Pagoda's official reply was that it does not support the installation of the WSL version.
But still tried to do some more searches and found a solution from a netizen
I also encountered this problem a few days ago...
Later, when I changed the cloud database support, I found out where the problem was.
Open /www/server/panel/class/panelMysql.py in the file of the pagoda panel
to see The socket is used to connect, and the local file /tmp/mysql.sock is used. I checked the file and it does exist. It may be permission? Or other problems. In short, this connection method cannot be connected... Then we change A connection method, modify line 60
self.__DB_CONN = MySQLdb.connect(host = self.__DB_HOST, user = self.__DB_USER, passwd = self.__DB_PASS, port = self.__DB_PORT, charset="utf8", connect_timeout=1 , unix_socket=socket ) Remove unix_socket=socket
at the back , change the timeout connect_timeout, for example, 1000, self.__DB_CONN = MySQLdb.connect(host = self.__DB_HOST, user = self.__DB_USER, passwd = self.__DB_PASS, port = self.__DB_PORT, charset="utf8", connect_timeout=1000 ) save, restart the panel, the database can be used normally...
apt uses slower words to update to domestic sources
back up the original file
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
Edited to replace Ali's source
vi /etc/apt/sources.list
Pay attention to version selection, or directly replace http://archive.ubuntu.com with https://mirrors.aliyun.com
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb https://mirrors.aliyun.com/ubuntu/ jammy main restricted
# deb-src https://mirrors.aliyun.com/ubuntu/ jammy main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted
# deb-src https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb https://mirrors.aliyun.com/ubuntu/ jammy universe
# deb-src https://mirrors.aliyun.com/ubuntu/ jammy universe
deb https://mirrors.aliyun.com/ubuntu/ jammy-updates universe
# deb-src https://mirrors.aliyun.com/ubuntu/ jammy-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb https://mirrors.aliyun.com/ubuntu/ jammy multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ jammy multiverse
deb https://mirrors.aliyun.com/ubuntu/ jammy-updates multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ jammy-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted
# deb-src http://security.ubuntu.com/ubuntu/ jammy-security main restricted
deb http://security.ubuntu.com/ubuntu/ jammy-security universe
# deb-src http://security.ubuntu.com/ubuntu/ jammy-security universe
deb http://security.ubuntu.com/ubuntu/ jammy-security multiverse
# deb-src http://security.ubuntu.com/ubuntu/ jammy-security multiverse
Of course, you can also use the mirror of Tsinghua University: https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/