<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://purl.org/rss/1.0/"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel rdf:about="https://www.ishiguang.cn/feed/rss/tag/linux/">
<title>拾光 - linux</title>
<link>https://www.ishiguang.cn/tag/linux/</link>
<description></description>
<items>
<rdf:Seq>
<rdf:li resource="https://www.ishiguang.cn/17863.html"/>
<rdf:li resource="https://www.ishiguang.cn/11880.html"/>
<rdf:li resource="https://www.ishiguang.cn/11879.html"/>
<rdf:li resource="https://www.ishiguang.cn/11878.html"/>
<rdf:li resource="https://www.ishiguang.cn/11873.html"/>
</rdf:Seq>
</items>
</channel>
<item rdf:about="https://www.ishiguang.cn/17863.html">
<title>Linux自启动脚本编写</title>
<link>https://www.ishiguang.cn/17863.html</link>
<dc:date>2023-03-07T17:16:00+08:00</dc:date>
<description>本文章向大家介绍Linux里编写shell脚本实现开机自动启动1.连接上SSH终端，使用vim在/etc/init.d/文件夹里面创建一个名为start.sh的脚本文件vim /etc/init.d/start.sh2.编写名为start.sh脚本内容 #!/bin/bash

### BEGIN INIT INFO
# Provides:     start
# Required-Start:  $remote_fs $syslog
# Required-Stop:   $remote_fs $syslog
# Default-Start:   2 3 4 5
# Default-Stop:   0 1 6
# Short-Description: start test
# Description:    start test
### END INIT INFO

#此处编写脚本内容
cd /var/local/
nohup java -jar -Xms512M  -Xmx1024M jenkins.war --httpPort=8080 &gt; jenkins.log 2&gt;&amp;1 &amp;

exit 03.给文件增加权限chmod +755 /etc/init.d/start.sh4.设置开机自启动sudo update-rc.d /etc/init.d/start.sh defaults5.重启服务器reboot6.查看进程ps -ef |grep jenkns完成OK文章来源于：小威博客</description>
</item>
<item rdf:about="https://www.ishiguang.cn/11880.html">
<title>go关键字，变量，类型，规范</title>
<link>https://www.ishiguang.cn/11880.html</link>
<dc:date>2022-01-22T18:42:14+08:00</dc:date>
<description>1.在java语言中，代码一行书写需要加上分号，但是在go语言中写同一个语句不需要分号。 2.java中申明变量为int a，即变量的类型在变量前面，而在go语言中，变量的类型在变量的后面，即 a int ，在go中变量申明后没有赋值 的话将会有默认的值， a int 是0，b string 是字符长度为0的“”，c bool 的值是false。go中也可以申明变量后直接赋值，使用 i:=3的方式在函数中申明变量并且赋值。还可以使用分组的方式赋值 a,b:=4,5,另外使用下划线的方式代替变量名，可以使用以下的方式进行赋值：_,b:=5,8,这种赋值方式使得任何赋值给下划线的值都被抛弃。同样的可以进行分组申明变量 {a int b bool}.使用bool申明布尔类型，使用int申明整型类型，在go中，混合类型进行运算时非法行为，如a int 和 b int32是无法相加的，其中int类型是通用类型，具体大小根据硬件进行改变，如在32位系统是32位的，在64位系统是64位的。 3.常量，在go语言中，使用const关键字申明常量，可以申明整型，布尔类型，字符串类型申明常量 const（x:=4;b:=false）。申明常量可以使用iota，常量赋值自增量，const(a:=iota b) 4.go中的特殊类型string和java一样，属于不可变的。</description>
</item>
<item rdf:about="https://www.ishiguang.cn/11879.html">
<title>go程序部署apache配置</title>
<link>https://www.ishiguang.cn/11879.html</link>
<dc:date>2022-01-22T18:41:50+08:00</dc:date>
<description>在ubuntu上配置apache的时候，发现使用find -name 查找httpd.conf配置文件，但是并没有找到相应的配置文件，但是却找到了/etc/apache2/apache2.conf这个配置文件，使用vi编辑器查看后，发现一些配置文件通过Include的指令包含进来，其中就有/etc/apache2/sites-available以及/etc/apache2/sites-enabled两个目录，打开mods-available目录，发现已经有默认的配置模块000-default，这里面是设置虚拟主机的，80端口指向的就是apache的默认页面。所以这里每个虚拟主机的配置文件都是放在sites-available目录下的，而sites-enabled建立了指向该目录下每一个配置文件的链接，这样关闭虚拟主机删除相应链接即可。在我的项目中配置时，我通过在sites-available目录下建立myapp.conf文件，配置如下： //通过公网ip访问的80端口 ServerName chepinpin.top 域名解析时设置 ServerAdmin kemp2chen@gmail.com 设置管理员邮箱 ProxyRequests on 开启反向代理 策略 Order deny,allow Allow from all ProxyPass / http://127.0.0.1:8081/ 本地服务端口 ProxyPassReverse / http://127.0.0.1:8081/</description>
</item>
<item rdf:about="https://www.ishiguang.cn/11878.html">
<title>解决apache2配置时出现ProxyPass无效的错误</title>
<link>https://www.ishiguang.cn/11878.html</link>
<dc:date>2022-01-22T18:40:46+08:00</dc:date>
<description>unbunt使用apache2配置访问服务端口时，使用ProxyPass将远程服务器映射到本地url空间，即使用ProxyPass进行反向代理，但是在配置时发现该命令无效，可使用如下方法进行解决： cd /etc/apache2/mods-enabled ln -s ../mods-available/proxy_http.load proxy_http.load ln -s ../mods-available/proxy_ajp.load proxy_ajp.load ln -s ../mods-available/proxy.load proxy.load 然后 servise apache2 restart 重启服务器</description>
</item>
<item rdf:about="https://www.ishiguang.cn/11873.html">
<title>Debian系统宝塔无法安装PHP,Nginx等解决办法</title>
<link>https://www.ishiguang.cn/11873.html</link>
<dc:date>2022-01-22T18:34:22+08:00</dc:date>
<description>Debian系统宝塔无法安装PHP,Nginx等怎么办？由于缺少依赖决绝办法RetHat CentOS or Fedora 使用下面安装命令yum install curl curl-develDebian or Ubuntu使用下面的安装命令apt-get install curlapt-get install libcurl4-gnutls-dev这样就可以了关于不能安装php就安装这个apt-get install -y libboost-all-dev gperf libevent-dev uuid-dev*另外说下，用Apache.不要用Nginx</description>
</item>
</rdf:RDF>