building web

:**实现思路**
:过程
1.工欲善其事必先利其器,谈建站就离不开国外的源,自己的网访问,下载速度慢,更改源,163、阿里、中科大源…点击进入阿里源

2.备份、添加、运行点击查看

3.源装好之后,sudo apt-get updatesudo apt-get install 应用
error:server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
解决:未,使得每次安装只能手动,手工遇到的麻烦超乎我的想象。

4.使用Linux服务器,推荐安装MobaXterm_Personal_20.1
相较于putty:代码高亮、性能稳定、实现本机与服务器直接文件拖拽传输
eror:permission denied
解决:找到要传输进入的文件(root),chmod 777 文件名
error:文件过大,传输进度停止,应用崩溃
解决:打开文件夹,分批传输

5.使用vi命令打开并修改文件
:redis数据库的安装与连接点击链接
1.sudo vi /etc/redis/redis.conf
2.bind 127.0.0.1改为bind 0.0.0.0
3.protected-mode nodaemonize yessupervised no
4.#requirepass 密码不取消注释则免密,否则设置一个密码。
4.启动redis,在目录/usr/local/redis/redis命令:src/redis-server
5.修改Redis的默认端口(可以不修改)port 6379
6.启动出现bug
error:-DENIED Redis is running in protected mode because protected mode is enabled, no bind address was specified, no authentication password is requested to clients. In this mode connections are only accepted from the loopback interface. If you want to connect from external computers to Redis you may adopt one of the following solutions: 1) Just disable protected mode sending the command 'CONFIG SET protected-mode no' from the loopback interface by connecting to Redis from the same host the server is running, however MAKE SURE Redis is not publicly accessible from internet if you do so. Use CONFIG REWRITE to make this change permanent. 2) Alternatively you can just disable the protected mode by editing the Redis configuration file, and setting the protected mode option to 'no', and then restarting the server. 3) If you started the server manually just for testing, restart it with the '--protected-mode no' option. 4) Setup a bind address or an authentication password. NOTE: You only need to do one of the above things in order for the server to start accepting connections from the outside.
解决:执行protected-mode no后重新启动
7.启动出现bug
error:21105:M 20 Mar 2020 19:45:52.768 # Server initialized 21105:M 20 Mar 2020 19:45:52.768 # WARNING overcommit_memory is set to 0! Backgr ound save may fail under low memory condition. To fix this issue add 'vm.overcom mit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl v m.overcommit_memory=1' for this to take effect. 21105:M 20 Mar 2020 19:45:52.768 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issue s with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/tra nsparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disable d. 21105:M 20 Mar 2020 19:45:52.769 * DB loaded from disk: 0.000 seconds 21105:M 20 Mar 2020 19:45:52.769 * Ready to accept connections

解决1:按照错误所说进行操作To fix this issue add 'vm.overcom mit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl v m.overcommit_memory=1' for this to take effect
解决2:翻译软件实用To fix this issue run the command 'echo never > /sys/kernel/mm/tra nsparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot.
8.接着上一步解决2出现的bug
error:sysctl: cannot stat /proc/sys/v: No such file or directory sysctl: cannot stat /proc/sys/m/overcommit_memory: No such file or directory
解决:sysctl vm.overcommit_memory=1
9.记得把服务器的防火墙关,否则连接不上服务器点击链接
10最后的bug.
error:*** FATAL CONFIG FILE ERROR *** Reading the configuration file, at line 147 >>> 'supervised yes' Invalid option for 'supervised'. Allowed values: 'upstart', 'systemd', 'auto', or 'no' root@ubuntu:/usr/local/redis/redis# src/redis-server redis.conf
解决:事实证明,supervised no 不需要修改
11.安装redis成功样图:在这里插入图片描述
12windows连上服务器时
error:telnet不是内部或外部命令,也不是可运行的程序
解决: 点击解决
13.redis通过6379端口无法连接服务器
error:redis通过6379端口无法连接服务器
分析:其实redis无法连接数据库就只有这几种可能,防火墙,安全组,密码,绑定IP
解决:超详细解决方案
:Ubuntu装Java环境
1.安装过程中,修改路径的步骤十分关键
查找文件find / -name
增加权限sudo find / -name
筛选:find / -size 1G

2.通过MobaXterm_Personal_20.1修改
eror:permission denied
解决:找到要传输进入的文件(root),chmod 777 文件名

3.root用户装上了Java环境,不代表其他用户也能用上,每次启动input命令

source /etc/profile

:安装elasticsearch
1.下载:国内链接更快速
2.安装:
十:插曲
1.浏览大量网页的过程,最烦广告
Google插件
广告插件error
2.分窗输入代码更高效
3.命令:学会更多命令点击

:q 文件退出
:wq文件保存退出
cd  打开文件
ls 展示文件
pwd显示位置
su username打开用户
su root
etconf LONG_BIT 查看系统的位,方便手动选择软件类型
rm -r 目录名              #删除一个非空目录
cd /回到主目录
sudo chmod 777 文件名: 最高权限
directory 目录
touch +  (添加文件 )
sudo regedit /etc/profile
sudo vi ~/.bashrc   更改环境
java -version
sudo vi /etc/profile 修改文件c
sudo tar -zxvf jdk-8u241-linux-arm64-vfp-hflt.tar.gz 解压文件包
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值