对Go的复盘计划
距离上一次的go工作已经过去差不多一年半了,最近一年半PHP为主了,对go又生疏了。
接下来开始重新学习go,放下的再捡起来吧
iuu的个人博客
距离上一次的go工作已经过去差不多一年半了,最近一年半PHP为主了,对go又生疏了。
接下来开始重新学习go,放下的再捡起来吧
使用 systemd-analyze 命令来检查服务文件的语法是否正确
systemd-analyze verify /etc/systemd/system/supervisord.service
Docker安装redis
docker pull redis:latest
wget http://download.redis.io/redis-stable/redis.conf
docker run -d -p 6379:6379 \
--name docker-redis \
-v /home/iuu/Software/Docker/redis/redis.conf:/etc/redis/redis.conf \
-v /home/iuu/Software/Docker/redis/data:/data \
--restart=always \
redis:latest \
redis-server /etc/redis/redis.conf
编译安装PHP常用参数
./configure --prefix=/home/iuu/Software/php/php83 --with-config-file-path=/home/iuu/Software/php/php83/etc --with-curl --with-freetype --enable-gd --with-jpeg --with-gettext --with-kerberos --with-mysqli --with-openssl --with-external-pcre --with-pdo-mysql --with-pear --with-xsl --with-zlib --enable-fpm --enable-bcmath --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-xml --with-zip --enable-ftp --enable-session --enable-xml --enable-cli --enable-static --enable-mysqlnd --enable-intl --enable-pdo --with-iconv --with-bz2 --with-ldap-sasl --with-mhash --with-libxml --with-pdo-sqlite
make && make install
cp /home/iuu/Software/php/php83/php-8.3.10/php.ini-production /home/iuu/Software/php/php83/etc/php.ini
cp /home/iuu/Software/php/php83/php-8.3.10/sapi/fpm/php-fpm /home/iuu/Software/php/php83/etc/php-fpm
cp /home/iuu/Software/php/php83/etc/php-fpm.conf.default /home/iuu/Software/php/php83/etc/php-fpm.conf
cp /home/iuu/Software/php/php83/etc/php-fpm.d/www.conf.default /home/iuu/Software/php/php83/etc/php-fpm.d/www.conf
给apt设置代理服务器
新增配置文件
/etc/apt/apt.conf.d/proxy.conf
增加以下内容
Acquire {
HTTP::proxy "http://127.0.0.1:1080";
HTTPS::proxy "http://127.0.0.1:1080";
}