安装nginx 1 sudo apt-get install -y nginx 修改配置文件 1 vi /etc/nginx/nginx.conf 2 #注释掉下面这行代码 3 #include /etc/nginx/sites-enabled/*; 4 #保存 在/etc/nginx/conf.d ...
分类:
系统相关 时间:
2021-05-24 09:40:00
阅读次数:
0
环境:WIN10 Docker Desktop 部署命令:/E windows盘符E docker run -p 6003:6379 --name redis_v3 -v /E/Docker/redis_3/conf/redis.conf:/usr/local/etc/redis/redis.con ...
分类:
其他好文 时间:
2021-05-24 09:23:39
阅读次数:
0
添加启动的账户名 sudo vi /etc/systemd/system/getty.target.wants/getty@tty1.service 如图中的 ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear %I $TERM 中添加自启动root用户 ...
分类:
系统相关 时间:
2021-05-24 09:22:34
阅读次数:
0
查看是否启动 ps -e | grep sshd 未启动则启动服务 /etc/init.d/ssh start 附:#重启SSH服务 /etc/init.d/ssh restart #关闭SSH服务 /etc/init.d/ssh stop 未安装则安装服务 apt-get update apt-g ...
分类:
系统相关 时间:
2021-05-24 09:07:51
阅读次数:
0
关键思路从后往前合并 class Solution { public void merge(int[] nums1, int m, int[] nums2, int n) { int idxm=m-1; int idxn=n-1; int sum=m+n-1; while(idxm>=0&&idxn ...
分类:
移动开发 时间:
2021-05-24 08:38:40
阅读次数:
0
1.免交互处理 在免交互输出处理中可以使用重定向将输出内容输入到黑洞文件/dev/null中。 [root@localhost ~]# echo password | passwd --stdin user &> /dev/null 2.I/O交互标准输入:从此设备接收用户输入数据标准输出:通过此设 ...
分类:
系统相关 时间:
2021-05-24 08:35:13
阅读次数:
0
两大部分,一环境,二LVS规则 一、环境 1、两台服务器上安装httpd 服务 yum install httpd -y 2、开启服务,并设置为开机自启 systemctl start httpd systemctl enable httpd 3、新建页面 1)、在RS1 服务器上新建页面RS1 e ...
分类:
其他好文 时间:
2021-05-24 08:18:05
阅读次数:
0
环境准备,一台CentOS7 安装软件```[root@localhost ~]# yum install mariadb-server -y```创建三个实例的目录```[root@localhost ~]# mkdir /mysql/{3306,3307,3308}/{data,etc,sock ...
分类:
数据库 时间:
2021-05-24 08:17:38
阅读次数:
0
1.设置环境变量 # echo 'PATH=/opt/opsmgr/web/components/postgresql96linux64.1/bin/:$PATH' >> /etc/profile # echo 'export PGPASSWORD=ytcmUUNq' >> /etc/profile ...
分类:
数据库 时间:
2021-05-24 08:13:18
阅读次数:
0
主要有两个问题: 1.未打开密码登录方式 输入 vi /etc/ssh/sshd_config 找到 PasswordAuthentication 设置为 yes。 记得重启ssh:输入 systemctl restart sshd 2. 没有创建对应的用户 腾讯云默认的用户是lighthouse, ...
分类:
系统相关 时间:
2021-05-24 08:11:48
阅读次数:
0