Fish in the river

运维技术
在运维过程中碰到的运维记录
Windows

use proxy in the windows cmd console

Sometimes we need use proxy in the windows cmd console. for example pip install some package in the python environment. next is how to set proxy temporary. 1. check if you can visit google in cmd console.if you see the picture ,that's mean you can't visit the google. 2. in the opened cmd console. use the next command to set temporary proxy. set HTTP_PROXY=http://192.168.0.110:3128 set HTTPS_PROXY=http://192.168.0.110:3128 3.then use the next command to check if the temporary proxy is enabled. curl -I www.google.com if you the as shown in the figure below,it is mean the temporary proxy is enabled.  

2025年8月18日 0comments 14hotness 0likes joey Read all
Linux

windows remote control ubuntu 24.04 and install chinese input method

Recently,i want to install ubuntu .So i find the latest version in the ubuntu website. The latest ubuntu version is 24.04. when i install the ubuntu desktop version. I want remote control it from my windows 11.In the latest ubuntu ,it's include remote control services. The next step is how to set up it used to be control by windows11. 1. open the settings,find the "system" and "Remote Desktop" on the right panel. 2.in the opened dialog.enable "Desktop Sharing" and "Remote Control" two options. then set "Username" and "Password" in the Login Details group. Attention password in this is not login ubuntu's password.you can click the eye to see it.and click the pen button to change it. 3.Do all the two steps.you can remote control it from your windows 11.   Ubuntu 24.04 default input manage is ibus.after i install some chinese input method.i can not see it in the input sources yet.So i install the fcitx5 on the ubuntu. Next is how to install fcitx5 on the ubuntu 24.04. 1. sudo apt update 2. sudo apt install fcitx5 fcitx5-chinese-addons fcitx5-config-qt fcitx5-configtool fcitx5-chinese-addons includes Pinyin and Shuangpin support. 3. im-config -n fcitx5 Then log out and log back in. Open Fcitx 5 Configuration (fcitx5-configtool) from the application menu. Click "+" to add a new input method. Search for Pinyin (or your preferred Chinese method) and add it.

2025年8月14日 0comments 58hotness 0likes joey Read all
Windows

set wampserver on the windows

Sometimes we need the php environment on the windows. Because it is quickly and easily than on the linux. Next is the step on the windows. 1. install wampserver. 2.if you install by default ,when install complete,open the web browser,for example google chrome then visit the localhost http://127.0.0.1 3.on the webpage ,click "Add a virtual Host" under the Tools. 4.on the opened webpage ,text all information that required.In this page the important information is Listen port.In the wapserver ,It is distinguish different virtual host by listen port. 5. listen port in the dropbox from next image.It is very import.it is waste me many times. 6.remember allow listen port for access on the firewall. 7.That's all.have enjoy.  

2025年8月11日 0comments 24hotness 0likes joey Read all
Windows

squid on the windows

Squid is a very popular proxy server. It is usually running on the Linux. But sometimes we will install it on the Windows because this method is easy and quickly. After install it on the windows. I want to set the cache. Squid have two type cache. Memory cache and Disk cache. Next is demo how to set disk cache on the windows. 1. Right-click the squid icon in the windows tray . 2.Select the "Open Squid Configuration" Menu 3.In the opened "squid.conf" text file, find the "cache_dir" line.Uncomment the line .Then change the default value. for example , you want to save the cache file in the "c:\squid\cache" directory. after changed it like follow. cache_dir aufs C:\Squid\cache 3000 16 256 4. Save it and stop the Squid service through the menu right-click the icon in the tray. 5.Run " squid Terminal " as administator. which usually on the desktop. 6.In the command line. run the next command. squid -z 7.Start Squid services. That's all. Have a enjoy.

2025年8月8日 0comments 28hotness 0likes joey Read all
运维技术

Citrix Visual desktop use https on the storefont

When i install Citxix visual desktop on my lan network. I usually used http but not https. But when citrix workspace client upgrade to lastest version. It is not suport http . So i must config it use https instead of http. In my config it . i use microsoft ad cert service. i want to use it to depoly cert file . This step can follow the website.It's desciption very clear. https://www.cnblogs.com/jackadam/p/18214294 In the artile , the important step is follow ,because i pay many time in it. 注意通用名称就是需要证书的web服务的域名  

2025年8月1日 0comments 23hotness 0likes joey Read all
Dock

openWebUI update

OpenWebUi update so quickly so have to write a post to record it. I deploy it with docker with default set. so this article is show the process in the openWebUI deploied by docker. ssh the server execute the command sudo docker run --rm --volume /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --run-once open-webui execute the command  sudo docker image ls  if you find the image list contain two open-webui .and one' tag is <none> then update success. if your server disk space is small like me .you can delete the docker image to save the disk space used the command sudo docker rmi <IMAGE ID>. please notice used the image id to prevent to delete the docker image that just updated image.

2025年6月26日 0comments 50hotness 0likes joey Read all
Esxi

vmware vcenter vsphere 负载均衡

本篇文章主要是介绍基于IP的哈希的负载均衡与故障绑定的设定与检查。 一.负载均衡的设定 1.同一台ESXI,上面有两台虚拟机,当然虚拟机的IP地址不相同。这两台虚拟机连接到同一个端口组。该端口组所在的标准虚拟交换机有两个上行链路并且启用了基于IP的哈希的负载均衡与故障绑定的设定。如下图: 2.该端口组也设置了基于IP的哈希的负载均衡与故障绑定。如下图:   3.完成设置后,大概的简略图如下所示: 二.负载均衡的验证 特别声明: 1.必须使用以下的方法验证,才能验证出来。 就是要虚拟机和实体机不同的主机之间互相访问。 2.通过ESXI主机上的监控可以发现,流量分别走了不同的网卡。如下图: 这里要特别注意。 但网络上说,不同的主机同时访问同一台主机的时候,也会走不同的上行链路,我这边没有验证成功。又有说,从外部主机访问内部主机时,是外部主机主导的上行链路的选择,所以我从一台虚拟机去同时访问两台外部主机时,发现也没有分别走不同的上行链路。

2025年6月12日 0comments 58hotness 0likes joey Read all
Windows

激活windows和Windows

Open PowerShell To do that, press the Windows key + X, then select PowerShell or Terminal. Copy and paste the code below, then press enter. irm https://get.activated.win | iex You will see the activation options. Press [1] HWID for Windows activation. Press [2] Ohook for Office activation. That's all

2025年4月25日 0comments 90hotness 0likes joey Read all
Windows

自建KMS_SERVER激活Windows 11

需要Docker基础。需要科学上网拉取Docker镜像。 一. 运行一个KMS SERVER container.我用的是mikolatero/vlmcsd。 docker run -d -p 1688:1688 --restart=always --name vlmcsd mikolatero/vlmcsd 二. 在Windows上用管理员权限依次执行如下命令。 slmgr.vbs -upk slmgr.vbs -ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX(key可以从此链接获取) slmgr.vbs -skms DOCKER_IP:PORT slmgr.vbs -ato slmgr.vbs -dlv 三.如需激活Office cd \Program Files\Microsoft Office\Office16 cscript ospp.vbs /sethst:DOCKER_IP cscript ospp.vbs /setprt:PORT cscript ospp.vbs /inpkey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx (key可以从此链接获取) cscript ospp.vbs /act cscript ospp.vbs /dstatusall  

2025年4月23日 0comments 94hotness 0likes joey Read all
Dock

通过Docker安装MediaWiki踩坑

这是一个很奇怪的坑。 使用DockerHub中提供的DockerCompose文件安装MediaWiki。 初始化安装后一切顺利。在初始化的最后也生成了一个LocalSettings.php文件,也自动下载到了本地。 通过WinScp工具将这个文件上传到了DockerCompose.yml所在目录。 也修改了dockercompose文件,将其中的挂在LocalSettings.php的行的注释也取消掉了。 这时再去访问刚刚搭建的这个Wiki时,一直提示,LocalSettings.php找不到。一直卡在初始化安装界面。 我在主机上给LocalSettings.php文件为777的权限。但也无济于事。 最后,我想到干脆将这个文件COPY到容器的内部。没想到成功了。但是这样做按理说从起容器后,应该失效才是。所以我就重启了容器,但是它还是好的。我通过compose命令重启,也是好的。 奇怪了。 解决方案就是 进入容器内部,将主机上的这个文件Copy到容器内部。 其实还有一些验证手段,比如,将容器内部的这个文件修改一下内容,比如数据库连接参数,测试一下。它是用的容器内部还是主机上映射的。通过验证,发现并没有加载Host上的配置文件。 因为奇怪,所以记录一下。 ---------------------------------------找到问题并解决分割线-------------------------------------------------------- 找到问题了,使用DockerCompose重启Docker命令,是使用 sudo docker compose down sudo  docker compse up -d 这种情况下才会去重新加载Dockercompose.yml文件中新的配置。 sudo docker compose stop sudo docker compsoe start 这种情况下是不会重新加载dockercopose.yml文件中的配置的。只是将当前的dockercompose.yml文件中的容器重启一下而已。 还是对docker compose不熟导致的问题。 😮‍💨。

2025年1月22日 0comments 100hotness 0likes joey Read all
123

近期文章

  • use proxy in the windows cmd console
  • windows remote control ubuntu 24.04 and install chinese input method
  • set wampserver on the windows
  • squid on the windows
  • Citrix Visual desktop use https on the storefont

近期评论

No comments to show.

COPYRIGHT © 2024 水中小鱼. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang