虽然我是个数学专业的,但是把,云服务器,免费送,搭个web环境,放个纪念日web应用,撩撩妹子,他不香嘛??

果断下单付款,登上控制台,嗯,美滋滋!!香喷喷!!!
40g,够用!
图片说明
在这,改密码,
图片说明
然后本地用SSH工具,

主机处填公网ip,密码就是刚刚重置过的密码,然后链接,接下来有个弹窗,点击永久保存密钥指纹。
图片说明

然后。硬核又简单的表白程序

然后安装web环境,LAMP,

安装Apache2

首先,我们需要安装Apache 2 Web服务器。

apt install apache2 -y

安装后,您可以浏览到服务器的IP地址或DNS名称,并查看Apache附带的默认网页。

安装MySQL

运行以下命令安装MySQL。

apt install mysql-server -y

安装完成后,我们需要保护它。 运行此命令以保护MySQL。

mysql_secure_installation

这个脚本会问你几个问题。

第一个问题将要求您安装验证密码插件。

VALIDATE PASSWORD PLUGIN can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD plugin?

Press y|Y for Yes, any other key for No: N

我通常会回答“N”这个问题,因为我知道我的密码是安全的。 如果您愿意,可以回答“Y”。

接下来,该脚本将要求您为根MySQL用户设置新密码。

New password: 

Re-enter new password:

该脚本现在将要求您删除匿名用户。 回答“Y.”

By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL without having to have
a user account created for them. This is intended only for
testing, and to make the installation go a bit smoother.
You should remove them before moving into a production
environment.

Remove anonymous users? (Press y|Y for Yes, any other key for No) : Y

接下来,它会询问您是否要远程禁止root登录。 我们应该总是回答“Y”。

Normally, root should only be allowed to connect from
'localhost'. This ensures that someone cannot guess at
the root password from the network.

Disallow root login remotely? (Press y|Y for Yes, any other key for No) : Y

它会要求您删除测试数据库并访问它。 回答“Y.”

By default, MySQL comes with a database named 'test' that
anyone can access. This is also intended only for testing,
and should be removed before moving into a production
environment.

Remove test database and access to it? (Press y|Y for Yes, any other key for No) : Y

接下来,它会要求您重新加载权限表。 回答“Y.”

Reloading the privilege tables will ensure that all changes
made so far will take effect immediately.

Reload privilege tables now? (Press y|Y for Yes, any other key for No) : Y

最后,脚本完成。

MySQL现已安装。

安装PHP

运行以下命令以安装PHP。

apt install php -y

接下来,我们需要告诉Apache首先提供PHP页面。

打开/etc/apache2/mods-enabled/dir.conf文件并将其更改为首先列出index.php。

<IfModule mod_dir.c>
    DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
</IfModule>

最后,我们需要重新启动Apache Web服务器。

systemctl restart apache2

安装PHP模块

安装基于PHP的应用程序时,它将具有PHP模块依赖性。

一个常见的PHP模块是php-curl模块。

我们可以用apt来安装这些。 只需在你需要安装的模块前面添加“php-”。

apt install php-curl

如果你在查找所需的模块时遇到问题,只需输入“apt install php”(模块的第一个字母),然后点击TAB键。

Ubuntu将为你列出所有匹配的包。

至此,安装LAMP环境结束!
把,表白程序打包放在网站根目录,用ip/程序文件夹名,即可访问。

来来,http://139.9.169.75/love/

程序,下载的的别人的,作者演示:http://www.qiugouda.com/love/